summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Artyom Bologov 2024-09-14 04:52:49 +0400
committerGravatar Quentin Rameau 2025-04-18 13:38:56 +0200
commit22cc5ceee2bb1e627457bbbdb4b80734bd25f4a4 (patch)
tree909af6979250dd014755900069346aa3b0e153e0
parentFix some typo for kiosk mode in the man-page (diff)
Support PDFs
-rw-r--r--surf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index ec74aa8..8b35a8f 100644
--- a/surf.c
+++ b/surf.c
@@ -1701,6 +1701,7 @@ decideresource(WebKitPolicyDecision *d, Client *c)
&& !g_str_has_prefix(uri, "webkit://")
&& !g_str_has_prefix(uri, "data:")
&& !g_str_has_prefix(uri, "blob:")
+ && !g_str_has_prefix(uri, "webkit-pdfjs-viewer://")
&& strlen(uri) > 0) {
for (i = 0; i < strlen(uri); i++) {
if (!g_ascii_isprint(uri[i])) {