neb.js icon indicating copy to clipboard operation
neb.js copied to clipboard

Error using chrome with third-party cookies blocked

Open iancoleman opened this issue 4 years ago • 0 comments

This library does not load correctly when used in chrome for users with third-party cookies disabled.

When users have this setting enabled, localStorage is blocked. https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document

The error in dev tools is "Failed to read the 'localStorage' property from 'Window': Access is denied for this document."

This affects code in native.js which has calls to localStorage.

This might be fixed by wrapping the localStorage aspects in a try/catch. Or there may be some other clever way.

Related to https://github.com/iancoleman/bip39/issues/395

iancoleman avatar Jan 09 '20 03:01 iancoleman