jshackles / Enhanced_Steam

Enhances the Steam Experience
www.EnhancedSteam.com
GNU General Public License v3.0
1.31k stars 195 forks source link

FIX: signed_in_promise() login check bug #1424

Closed JoiNNN closed 7 years ago

JoiNNN commented 7 years ago

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.

jshackles commented 7 years ago

This is a good sanity check that we can use in the meantime, thanks! 👍