bug: window.localStorage in Firefox
Firefox 3.6.4 throws an error when trying to access `window.localStorage`. (at least from `chrome://` URLs in extensions if not more)
This commit is contained in:
parent
8c89feac3e
commit
f51c923a5d
@ -49,7 +49,12 @@ if (less.env === 'development') {
|
||||
less.optimization = 3;
|
||||
}
|
||||
|
||||
var cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage;
|
||||
var cache;
|
||||
try {
|
||||
cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage;
|
||||
} catch (e) {
|
||||
cache = null;
|
||||
}
|
||||
|
||||
//
|
||||
// Get all <link> tags with the 'rel' attribute set to "stylesheet/less"
|
||||
|
Loading…
Reference in New Issue
Block a user