minor fixes

This commit is contained in:
Ilya Kantor 2021-07-23 10:10:17 +03:00
parent 823eea4dae
commit 2957e71a05
2 changed files with 3 additions and 3 deletions

View file

@ -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 => { // same as window.addEventListener('storage', event => {
window.onstorage = event => {
if (event.key != 'now') return;
alert(event.key + ':' + event.newValue + " at " + event.url);
};