Skip to content

Conversation

ekarious
Copy link

@ekarious ekarious commented Aug 6, 2020

What was the problem ?

paho-mqtt.js was using the code global.localStorage.

In Private navigation (aka incognito mode), cookies are by default blocked for third party. The fallback was to use localStorage but this file is attaching localStorage to global and access to the global window is forbidden which resulted in an error.

DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document

Why this modification:

Remove this little piece of code will allow aws-appsync to be correctly used even in private navigation.

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.

1 participant