Skip to content

Handle cases where localStorage access is denied #191

New issue

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

Merged

Conversation

mpcowan
Copy link

@mpcowan mpcowan commented Feb 15, 2019

In browsers when localStorage access is disabled for your domain the
browsers will throw an Access denied error if you try to even read the
localStorage property. This commit adds try/catch logic to handle the
error and use the in-memory fallback.

Signed-off-by: Matt Cowan [email protected]

In browsers when localStorage access is disabled for your domain the
browsers will throw an Access denied error if you try to even read the
localStorage property. This commit adds try/catch logic to handle the
error and use the in-memory fallback.

Signed-off-by: Matt Cowan <[email protected]>
@benswinburne
Copy link

Any idea when this might be merged?

@icraggs
Copy link
Contributor

icraggs commented Jun 4, 2019

Yes, when I figure out how to fix the build! Hopefully, soon.

@karldanninger
Copy link

Hey @icraggs any chance you could tag/release a minor bump to include this? Would be greatly appreciated!

@karldanninger
Copy link

Hey @jpwsutton just a friendly poke on this. Would love to see a minor bump release.

@vaskoGut
Copy link

vaskoGut commented Jun 2, 2021

it will be nice, if u make realase with that change guys

@ffxsam
Copy link

ffxsam commented Nov 8, 2021

For anyone who wants to patch this in their project: https://www.npmjs.com/package/patch-package

paho-mqtt is obviously no longer maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants