aboutsummaryrefslogtreecommitdiff
path: root/src/client/js
diff options
context:
space:
mode:
authorJoris2016-01-02 19:07:19 +0100
committerJoris2016-01-02 19:07:19 +0100
commitbb316286b0859b5648c61f44c88399f4c1aad9cd (patch)
treeecbe401c1ff657987b6609997a69775969a317f7 /src/client/js
parent0d0c99fd28b782c7daf02fb5cc48d3eb252e705d (diff)
Use start-app for elm
Diffstat (limited to 'src/client/js')
-rw-r--r--src/client/js/main.js11
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();