isBrowser.js 509 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function isBrowser() {
  4. return typeof window === 'object'
  5. && typeof document !== 'undefined'
  6. && typeof HTMLImageElement !== 'undefined'
  7. && typeof HTMLCanvasElement !== 'undefined'
  8. && typeof HTMLVideoElement !== 'undefined'
  9. && typeof ImageData !== 'undefined'
  10. && typeof CanvasRenderingContext2D !== 'undefined';
  11. }
  12. exports.isBrowser = isBrowser;
  13. //# sourceMappingURL=isBrowser.js.map