Skip to content

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

Description

@darkoncr

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') {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions