From 393f2de1465556b7bc3610c332778062fd137ed7 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 23 Sep 2015 18:30:28 +0200 Subject: [PATCH] Fix last commit --- views/app.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/app.blade.php b/views/app.blade.php index fe29e42d0..cd46782d7 100644 --- a/views/app.blade.php +++ b/views/app.blade.php @@ -41,7 +41,7 @@ app.boot(); @if (! $forum->attributes->debug) } catch (e) { - var nojs = window.location.indexOf('?') === -1 ? '?nojs=1' : ':nojs=1'; + var nojs = window.location.search ? '&nojs=1' : '?nojs=1'; window.location = window.location + nojs; } @endif