aboutsummaryrefslogtreecommitdiff
path: root/src/client/js
diff options
context:
space:
mode:
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();