isOldIE.js 605 B

1234567891011121314151617
  1. "use strict";
  2. var memo;
  3. /* istanbul ignore next */
  4. function isOldIE() {
  5. if (typeof memo === "undefined") {
  6. // Test for IE <= 9 as proposed by Browserhacks
  7. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  8. // Tests for existence of standard globals is to allow style-loader
  9. // to operate correctly into non-standard environments
  10. // @see https://github.com/webpack-contrib/style-loader/issues/177
  11. memo = Boolean(typeof window !== "undefined" && typeof document !== "undefined" && document.all && !window.atob);
  12. }
  13. return memo;
  14. }
  15. module.exports = isOldIE;