We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
location.pathname
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
Or manually add prefixes to all method calls.
The text was updated successfully, but these errors were encountered: