PS... if you're using localStorage, then try sessionStorage instead. I don't know all the internals, but I think the former is available across sessions but is more dependant on the url while the latter is available on a single browser session across urls. I could be wrong about that, but it's sessionStorage that works best for me in most cases.
↧