From 441e720c04eb35bdd45e6921ebddfb1d3f5456bf Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Tue, 1 Dec 2020 18:01:36 +0200 Subject: [PATCH] Fix typo in 6.2 (LocalStorage, sessionStorage) --- 6-data-storage/02-localstorage/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-data-storage/02-localstorage/article.md b/6-data-storage/02-localstorage/article.md index 65d3002a..e2e2751d 100644 --- a/6-data-storage/02-localstorage/article.md +++ b/6-data-storage/02-localstorage/article.md @@ -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); };