From e44234821b6fad1a61ef21a8832ce0f3439d0e3f Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 11 Aug 2018 14:26:17 -0400 Subject: [PATCH] Fix index.html --- advanced/server/public/index.html | 7 +++---- intro/server/public/index.html | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/advanced/server/public/index.html b/advanced/server/public/index.html index 4622d2a..c2b5f2a 100644 --- a/advanced/server/public/index.html +++ b/advanced/server/public/index.html @@ -18,10 +18,6 @@ - - @@ -31,6 +27,9 @@ app.ports.storeSession.subscribe(function(session) { localStorage.session = session; + + // Report that the new session was stored succesfully. + setTimeout(function() { app.ports.onSessionChange.send(session); }, 0); }); window.addEventListener("storage", function(event) { diff --git a/intro/server/public/index.html b/intro/server/public/index.html index 4622d2a..c2b5f2a 100644 --- a/intro/server/public/index.html +++ b/intro/server/public/index.html @@ -18,10 +18,6 @@ - - @@ -31,6 +27,9 @@ app.ports.storeSession.subscribe(function(session) { localStorage.session = session; + + // Report that the new session was stored succesfully. + setTimeout(function() { app.ports.onSessionChange.send(session); }, 0); }); window.addEventListener("storage", function(event) {