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.
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.pathnameWorkaround is to patch JS methods like in this example:
https://github.com/TomasHubelbauer/github-pages-local-storage/blob/main/index.js
Or manually add prefixes to all method calls.