rewrite: re-sync changes on page reload

This commit is contained in:
Tyler Renelle 2013-09-02 19:38:08 -04:00
parent 62a10d4b28
commit 393e40b763

View file

@ -122,6 +122,7 @@ angular.module('userServices', []).
settings.auth.apiId = uuid;
settings.auth.apiToken = token;
settings.online = true;
if (user && user._v) user._v--; // shortcut to always fetch new updates on page reload
this.log({}, cb);
} else {
alert('Please enter your ID and Token in settings.')