Skip to content

Commit 441e720

Browse files
committed
Fix typo in 6.2 (LocalStorage, sessionStorage)
1 parent e1a3f63 commit 441e720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6-data-storage/02-localstorage/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ If both windows are listening for `window.onstorage`, then each one will react o
202202

203203
```js run
204204
// triggers on updates made to the same storage from other documents
205-
window.onstorage = event => { // same as window.addEventListener('storage', () => {
205+
window.onstorage = event => { // same as window.addEventListener('storage', event => {
206206
if (event.key != 'now') return;
207207
alert(event.key + ':' + event.newValue + " at " + event.url);
208208
};

0 commit comments

Comments
 (0)