We now also compare the _profilepath to make sure currently logged in user data matches.
_This is a quick fix, a proper one would be done by making use of ES's
storage, however, chrome.storage.local unlike localStorage is not
synchronous, and so all functions depending on signed_in_promise() would
need to wrapped and deffered until signed_inpromise() completes.
And since this will need some extended testing we'll postpone until we
decide to move functions in sepparate files.
We now also compare the _profilepath to make sure currently logged in user data matches.
_This is a quick fix, a proper one would be done by making use of ES's storage, however, chrome.storage.local unlike localStorage is not synchronous, and so all functions depending on signed_in_promise() would need to wrapped and deffered until signed_inpromise() completes. And since this will need some extended testing we'll postpone until we decide to move functions in sepparate files.