Replace window with self for better web worker support

master
Oskar Eriksson 2016-10-01 21:27:01 +02:00 committed by Kees Kluskens
parent 50af215f06
commit 9dc45a6dee
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ var stylesInDom = {},
};
},
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 () {
return document.head || document.getElementsByTagName("head")[0];