diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/elmLauncher.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/public/javascripts/elmLauncher.js b/public/javascripts/elmLauncher.js index 52b1087..c4a00b3 100644 --- a/public/javascripts/elmLauncher.js +++ b/public/javascripts/elmLauncher.js @@ -1 +1,10 @@ -Elm.fullscreen(Elm.Main); +Elm.fullscreen(Elm.Main, { + signInError: getParameterByName('signInError') +}); + +function getParameterByName(name) { + name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); + var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), + results = regex.exec(location.search); + return results && decodeURIComponent(results[1].replace(/\+/g, " ")); +} |