aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJoris2016-01-01 14:39:40 +0100
committerJoris2016-01-01 14:39:40 +0100
commit0d0c99fd28b782c7daf02fb5cc48d3eb252e705d (patch)
tree93f9836152b6db9fc7a7af34ceb1dde920b1f3c3 /public
parent5f3d75406ef36924616e3289342647f4939d5004 (diff)
Simplify persona usage
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/main.js28
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'
- });
- }
-});