Skip to content

Commit

Permalink
fix(addStyles): update for test for old IE versions (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingDR authored and michael-ciniawsky committed Mar 22, 2017
1 parent b153070 commit 1f68495
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addStyles.js
Expand Up @@ -11,7 +11,12 @@ var stylesInDom = {},
};
},
isOldIE = memoize(function() {
return /msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase());
// Test for IE <= 9 as proposed by Browserhacks
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
// Tests for existence of standard globals is to allow style-loader
// to operate correctly into non-standard environments
// @see https://github.com/webpack-contrib/style-loader/issues/177
return window && document && document.all && !window.atob;
}),
getElement = (function(fn) {
var memo = {};
Expand Down

0 comments on commit 1f68495

Please sign in to comment.