Attaching the event:
$(window).on("storage", function (e) {
//callback not getting hit
});
Trying to fire the event:
localStorage.setItem("test", "123");
I have two tabs open, both listening to the storage event. I can see the localStorage getting updated correctly on both tabs. However when I change localStorage on one tab, the other never fires the event. Any ideas?
Tried on Chrome/Firefox. Domain format is https://www.xxx.yyy.zzz
.