Achshar Achshar - 4 months ago 21
Javascript Question

Edge not removing localStorage entries

I have been unable to remove localStorage entries from Edge across page loads. I tried with js first with

localStorage.removeItem('foo')
and then removed them manually in dev tools. The row gets removed but comes back on page reload. As if the changes to localStorage are not being saved. This only happens in Edge, Chrome works fine. Any ideas?

Edit: Not a typo in real code.

Answer

Some other part of another window DOMContentLoaded was settings localstorage on page load. D'oh moment right there.