From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 02:24:25 +0000 (+0200) Subject: foto: fix javascript warning in test for ?blur option X-Git-Tag: v3.5~19 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/bad405058add16983241e38c338589575123e5a5 foto: fix javascript warning in test for ?blur option Careless mistake broke js in commit v3.2-6-gee09c737f2 (2018-06-19) [foto: ?blur option to disable thumbnail resizing]. --- diff --git a/foto/album.inc.php b/foto/album.inc.php index 9410083..e961196 100644 --- a/foto/album.inc.php +++ b/foto/album.inc.php @@ -74,7 +74,7 @@ function imgjustify() { targetRowHeight: 200, }; var layout = require('justified-layout')(ratios, config); - var thumbreplace = !window.location.search.test(/[?&]blur\b/); + var thumbreplace = !/[?&]blur\b/.test(window.location.search); gallery.style.position = 'relative'; gallery.style.height = layout.containerHeight + 'px';