diff options
author | Joris | 2016-01-02 19:07:19 +0100 |
---|---|---|
committer | Joris | 2016-01-02 19:07:19 +0100 |
commit | bb316286b0859b5648c61f44c88399f4c1aad9cd (patch) | |
tree | ecbe401c1ff657987b6609997a69775969a317f7 /src/client/js | |
parent | 0d0c99fd28b782c7daf02fb5cc48d3eb252e705d (diff) |
Use start-app for elm
Diffstat (limited to 'src/client/js')
-rw-r--r-- | src/client/js/main.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/client/js/main.js b/src/client/js/main.js index 5fd73ea..2704746 100644 --- a/src/client/js/main.js +++ b/src/client/js/main.js @@ -2,18 +2,13 @@ var app = Elm.fullscreen(Elm.Main, { initialTime: new Date().getTime(), translations: document.getElementById('messages').innerHTML, config: document.getElementById('config').innerHTML, - sign: null + validateSignIn: "" }); -app.ports.persona.subscribe(function() { +app.ports.askSignIn.subscribe(function() { navigator.id.watch({ loggedInUser: null, - onlogin: function(assertion) { - app.ports.sign.send({ - operation: 'SignIn', - assertion: assertion - }); - }, + onlogin: function(assertion) { app.ports.validateSignIn.send(assertion); }, onlogout: function() {} }); navigator.id.request(); |