We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b153070 commit 1f68495Copy full SHA for 1f68495
addStyles.js
@@ -11,7 +11,12 @@ var stylesInDom = {},
11
};
12
},
13
isOldIE = memoize(function() {
14
- return /msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase());
+ // Test for IE <= 9 as proposed by Browserhacks
15
+ // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
16
+ // Tests for existence of standard globals is to allow style-loader
17
+ // to operate correctly into non-standard environments
18
+ // @see https://github.com/webpack-contrib/style-loader/issues/177
19
+ return window && document && document.all && !window.atob;
20
}),
21
getElement = (function(fn) {
22
var memo = {};
0 commit comments