Closed enriquepiatti closed 4 years ago
OK, this works:
localStorage.on('storage', function(e){
const key = e.key;
const newValue = e.newValue;
const oldValue = e.oldValue;
});
I see that you got it working on your own, but I'm curious if the way it worked was not the same way as the native LocalStorage or somehow was not as expected?
Hi, can you provide some example using the event listeners? Thanks !!