about summary refs log tree commit diff stats
path: root/res/config.toml
diff options
context:
space:
mode:
Diffstat (limited to 'res/config.toml')
-rw-r--r--res/config.toml9
1 files changed, 8 insertions, 1 deletions
diff --git a/res/config.toml b/res/config.toml
index 48eb0e64..ea3fcff5 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -124,7 +124,14 @@ scrollUp = 'n => pager.scrollUp(n)'
 scrollLeft = 'n => pager.scrollLeft(n)'
 scrollRight = 'n => pager.scrollRight(n)'
 click = '() => pager.click()'
-viewImage = '() => pager.gotoURL(pager.hoverImage)'
+viewImage = '''
+() => {
+	if (pager.hoverImage) {
+		const headers = new Headers({Accept: "*/*"});
+		pager.gotoURL(new Request(pager.hoverImage, {headers: headers}));
+	}
+}
+'''
 toggleImages = '() => pager.toggleImages()'
 markURL = '() => pager.markURL()'
 redraw = '() => pager.redraw()'