Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix chrome infinite storage loop bug #285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

onumossn
Copy link

If you have multiple tabs open in Chrome and run the following in each tab

window.addEventListener('storage', (e) => {
  if(e.oldValue !== e.newValue) { window.localStorage['hi'] = e.newValue; }
})

and run

for (var i = 0; i < 2; i++) { window.localStorage['hi'] = i.toString()}

, it can get into an seemingly infinite loop after having it in a certain number of tabs. Its seems to be similar to #47.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant