Add code to retrieve login token after login.

This commit is contained in:
2018-12-17 16:18:47 -08:00
parent 128430b38f
commit cf2ada4329
5 changed files with 34 additions and 16 deletions

View File

@@ -5,6 +5,6 @@ function setupStorage(app) {
localStorage.setItem(key, value);
});
app.ports.getStoreValuePort.subscribe(function(data) {
app.ports.receiveStoreValuePort.send(localStorage.getItem(data));
app.ports.receiveStoreValuePort.send({ "key" : data, "value" : localStorage.getItem(data) });
});
}