diff options
author | Joris | 2016-03-23 00:45:33 +0100 |
---|---|---|
committer | Joris | 2016-03-23 00:46:53 +0100 |
commit | a11ad41b52ed3682d33382f2a378bf3294d688b2 (patch) | |
tree | f1d0f7835965ebcc6a61225186cad6b5de565bca /src/client/js/main.js | |
parent | 32db6a74d8578f993dd1cce3367fc7615ec730cd (diff) |
Sign in token link to /
Diffstat (limited to 'src/client/js/main.js')
-rw-r--r-- | src/client/js/main.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/client/js/main.js b/src/client/js/main.js index 4c7e2df..0928ab5 100644 --- a/src/client/js/main.js +++ b/src/client/js/main.js @@ -1,13 +1,9 @@ +// Remove query params +window.history.pushState({html: document.documentElement.innerHTML, pageTitle: document.title}, '', '/'); + Elm.fullscreen(Elm.Main, { - signInError: getParameterByName('signInError'), initialTime: new Date().getTime(), translations: document.getElementById('messages').innerHTML, - conf: document.getElementById('conf').innerHTML + conf: document.getElementById('conf').innerHTML, + signInError: document.getElementById('signInError').innerHTML }); - -function getParameterByName(name) { - name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); - var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), - results = regex.exec(location.search); - return results && decodeURIComponent(results[1].replace(/\+/g, " ")); -} |