minor fixes
This commit is contained in:
parent
2957e71a05
commit
1b1a2c4b66
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ If both windows are listening for `window.onstorage`, then each one will react o
|
|||
|
||||
```js run
|
||||
// triggers on updates made to the same storage from other documents
|
||||
window.onstorage = event => {
|
||||
window.onstorage = event => { // can also use window.addEventListener('storage', event => {
|
||||
if (event.key != 'now') return;
|
||||
alert(event.key + ':' + event.newValue + " at " + event.url);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue