aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/elmLauncher.js
blob: 792a3f1235b99e29737ac086b23d463b82d7b331 (plain)
1
2
3
4
5
6
7
8
9
10
11
Elm.fullscreen(Elm.Main, {
  signInError: getParameterByName('signInError'),
  initialTime: new Date().getTime()
});

function getParameterByName(name) {
  name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
      results = regex.exec(location.search);
  return results && decodeURIComponent(results[1].replace(/\+/g, " "));
}