foto: fix javascript warning in test for ?blur option
[minimedit.git] / foto / album.inc.php
index 94100835dac88ba958f9440c06349a2d8a7c68d1..e961196e34ad6e9e439fe652212b6374aff9c6de 100644 (file)
@@ -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';