From 38c73f2e67173d5358dd4bb7e17b1e5b9c283f22 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 22 Feb 2017 10:52:52 -0300 Subject: [#907] Add pixelated welcome message to login with @tuliocasagrande and @thaissiqueira --- web-ui/src/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web-ui/src/util.js') diff --git a/web-ui/src/util.js b/web-ui/src/util.js index bde8ce0a..effb3d9c 100644 --- a/web-ui/src/util.js +++ b/web-ui/src/util.js @@ -1,6 +1,6 @@ export const hasQueryParameter = (param) => { - const decodedUri = decodeURIComponent(window.location.search.substring(1)).split('&'); - return decodedUri.includes(param); + const decodedUri = decodeURIComponent(window.location.search.substring(1)); + return !(decodedUri.split('&').indexOf(param) < 0); }; export default { -- cgit v1.2.3