Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
@darkoncr

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

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