Skip to content
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

Error when localStorage is disabled in firefox by the user #14

Open
darkoncr opened this issue May 6, 2015 · 0 comments
Open

Error when localStorage is disabled in firefox by the user #14

darkoncr opened this issue May 6, 2015 · 0 comments

Comments

@darkoncr
Copy link

darkoncr commented May 6, 2015

In Firefox 37.0.2 if user set the property dom.storage.enabled to false in the about:config
An error occurs in the line

var mongoMachineId = parseInt(localStorage['mongoMachineId']);

A possible solution could be to check the existence of localStorage in the sentence

if (localStorage && typeof (localStorage) != 'undefined') {

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

No branches or pull requests

1 participant