Replace window with self for better web worker support
parent
50af215f06
commit
9dc45a6dee
|
@ -11,7 +11,7 @@ var stylesInDom = {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
isOldIE = memoize(function() {
|
isOldIE = memoize(function() {
|
||||||
return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
|
return /msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase());
|
||||||
}),
|
}),
|
||||||
getHeadElement = memoize(function () {
|
getHeadElement = memoize(function () {
|
||||||
return document.head || document.getElementsByTagName("head")[0];
|
return document.head || document.getElementsByTagName("head")[0];
|
||||||
|
|
Loading…
Reference in New Issue