Skip to content

firefox 20.0.1 NS_ERROR_UNEXPECTED: Unexpected error @ underscore.string/dist/underscore.string.js:883 #513

Description

@pascaldls

firefox 20.0.1
NS_ERROR_UNEXPECTED: Unexpected error @ underscore.string/dist/underscore.string.js:883
line var val = global.localStorage[name];?

code
function config (name) {
// accessing global.localStorage can trigger a DOMException in sandboxed iframes
try {
if (!global.localStorage) return false;
} catch (_) {
return false;
}
var val = global.localStorage[name];
if (null == val) return false;
return String(val).toLowerCase() === 'true';
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions