r/javascript • • Jan 12 '23

JavaScript localStorage: The complete guide

https://deadsimplechat.com/blog/javascript-localstorage-complete-guide/
2 Upvotes

6 comments sorted by

4

u/THE_AWESOM-O_4000 Jan 12 '23

Why are you manually creating StorageEvents? They get generated by other tabs on the same domain whenever a storage object gets modified. window.addEventListener('storage',...

1

u/oopsypoopsyXE Jan 12 '23

Cured my constipation because I shat myself laughing at this article thanks

1

u/shgysk8zer0 Jan 16 '23

Got so bored of the repetitive junk. I didn't make it to the end but seems like the whole thing could've been said in only a few lines.

38

u/[deleted] Jan 12 '23

[removed] — view removed comment

2

u/txmail Jan 13 '23

I think you are right - this is way to annoying to read, and the way it keeps summarizing... this crap is really going to mess up the search engines.