3 ms·
Wouldn't this cause problems with multiple tabs/windows? Like, if I have one Discord tab open (so localstorage is cleared) and I open a second one in parallel,
by xg15 5y ago
Wouldn't this cause problems with multiple tabs/windows?
Like, if I have one Discord tab open (so localstorage is cleared) and I open a second one in parallel, will I be logged out in the second one?
- Thorrez 5y agoI didn't look into it too deeply. Maybe if there are multiple windows they can communicate with each other in some way.
- brabel 5y ago"in some way" --> probably postMessage to send the variable to the new tab.
- toomanybeersies 5y agoService workers would be the solution to that problem, wouldn't they?