Merge pull request #2337 from vsemozhetbyt/patch-7

Fix typo in 6.2 (LocalStorage, sessionStorage)
This commit is contained in:
Ilya Kantor 2020-12-05 19:40:52 +03:00 committed by GitHub
commit 59acd01bb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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