Fix typo in 6.2 (LocalStorage, sessionStorage)

This commit is contained in:
Vse Mozhe Buty 2020-12-01 18:01:36 +02:00
parent e1a3f634a4
commit 441e720c04

View file

@ -202,7 +202,7 @@ If both windows are listening for `window.onstorage`, then each one will react o
```js run ```js run
// triggers on updates made to the same storage from other documents // triggers on updates made to the same storage from other documents
window.onstorage = event => { // same as window.addEventListener('storage', () => { window.onstorage = event => { // same as window.addEventListener('storage', event => {
if (event.key != 'now') return; if (event.key != 'now') return;
alert(event.key + ':' + event.newValue + " at " + event.url); alert(event.key + ':' + event.newValue + " at " + event.url);
}; };