ankurk91 / vue-web-storage

Vue.js plugin for local storage and session storage (1.8 kb min+gz) :floppy_disk:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event .on() not working?

fabianogaldino opened this issue · comments

I can't get the .on event to respond to the on change

https://jsfiddle.net/kw8crs23/

I will debug it, will report it back soon.

These events are for cross tab communication

@fabianogaldino
As said in above comment. These events are not regular events, these events are for cross tab communication.

Open this jsfiddle in two tabs and you will notice the events listeners are being fired.

Read more:
https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent