diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-22 10:52:52 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-22 15:22:55 -0300 |
commit | 38c73f2e67173d5358dd4bb7e17b1e5b9c283f22 (patch) | |
tree | b7fc2c890eb7242877e47cf926a4aa45a171bcce /web-ui/src/util.js | |
parent | f7bd078bcce2d6cad419fceb55ab71415cda4d33 (diff) |
[#907] Add pixelated welcome message to login
with @tuliocasagrande and @thaissiqueira
Diffstat (limited to 'web-ui/src/util.js')
-rw-r--r-- | web-ui/src/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |