esamattis / esamattis/underscore.string

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

Open
#513 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

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';
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.