aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/elmLauncher.js
blob: c4a00b3ac6919b06d278fffda755162367849d9d (plain)
1
2
3
4
5
6
7
8
9
10
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, " "));
}