This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Description
When hosting Blazor Wasm on Github Pages, all my repositories have the same origin. So localStorage items are shared among all my repositories.
So, I want an option to prefix every key with the current location.pathname
Workaround is to patch JS methods like in this example:
https://github.com/TomasHubelbauer/github-pages-local-storage/blob/main/index.js
localStorage.constructor.prototype.getItem = (key) => getItem.apply(localStorage, [location.pathname + ':' + key]);
Or manually add prefixes to all method calls.