You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
means only solution is putting all in a try-catch block and have a silent failure...means no cookie and no localStorage -> changeLanguage won't be persisted on session refresh - which might be ok in this cases...who turns off cookies anyway.
If you like you might provide a PR to speed it up...else i will try to make the change when i'm back from holiday.
i am a little bit busy these days too. If i find some spare time to provide a pull request, i let you know. Thanks for your proposal to fix it after your holiday! :-).
If Safari 10 does not allow access to the local storage this error is thrown: "SecurityError (DOM Exception 18): The operation is insecure".
This happens because of these lines:
https://github.com/i18next/i18next-browser-languageDetector/blob/master/src/browserLookups/localStorage.js#L29
https://github.com/i18next/i18next-browser-languageDetector/blob/master/src/browserLookups/localStorage.js#L38
Safari already throws this error if you access "window.localStorage".
Thanks! :-)
The text was updated successfully, but these errors were encountered: