From bad405058add16983241e38c338589575123e5a5 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 04:24:25 +0200 Subject: [PATCH] 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]. --- foto/album.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.30.0