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

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

Open
pascaldls opened this issue Nov 23, 2017 · 0 comments

Comments

@pascaldls
Copy link

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

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