diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/main.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js deleted file mode 100644 index 12593e6..0000000 --- a/public/javascripts/main.js +++ /dev/null @@ -1,28 +0,0 @@ -var app = Elm.fullscreen(Elm.Main, { - initialTime: new Date().getTime(), - translations: document.getElementById('messages').innerHTML, - config: document.getElementById('config').innerHTML, - sign: null -}); - -navigator.id.watch({ - loggedInUser: null, - onlogin: function(assertion) { - app.ports.sign.send({ - operation: 'SignIn', - assertion: assertion - }); - }, - onlogout: function() {} -}); - -app.ports.persona.subscribe(function(communication) { - if(communication === 'SignIn') { - navigator.id.request(); - } else if(communication === 'SignOut') { - navigator.id.logout(); - app.ports.sign.send({ - operation: 'SignOut' - }); - } -}); |