(minor) style fixes
This commit is contained in:
parent
8bb17cc4b9
commit
2477288bc0
@ -50,10 +50,11 @@ if (less.env === 'development') {
|
||||
}
|
||||
|
||||
var cache;
|
||||
|
||||
try {
|
||||
cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage;
|
||||
} catch (e) {
|
||||
cache = null;
|
||||
cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage;
|
||||
} catch (_) {
|
||||
cache = null;
|
||||
}
|
||||
|
||||
//
|
||||
@ -174,8 +175,8 @@ function xhr(url, callback, errback) {
|
||||
var xhr = getXMLHttpRequest();
|
||||
var async = isFileProtocol ? false : less.async;
|
||||
|
||||
if (typeof xhr.overrideMimeType === 'function') {
|
||||
xhr.overrideMimeType('text/css');
|
||||
if (typeof(xhr.overrideMimeType) === 'function') {
|
||||
xhr.overrideMimeType('text/css');
|
||||
}
|
||||
xhr.open('GET', url, async);
|
||||
xhr.send(null);
|
||||
|
Loading…
Reference in New Issue
Block a user