The MDN docs describe two possible ways to listen to storage events, window.addEventListener(\'storage\', () => { ... }) and window.onstorage = () =>
window.addEventListener(\'storage\', () => { ... })
window.onstorage = () =>