2020-08-20 02:05:34 +02:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
exports.isBrowser = void 0;
|
|
|
|
function isBrowser() {
|
2020-08-18 14:04:33 +02:00
|
|
|
return typeof window === 'object'
|
|
|
|
&& typeof document !== 'undefined'
|
|
|
|
&& typeof HTMLImageElement !== 'undefined'
|
|
|
|
&& typeof HTMLCanvasElement !== 'undefined'
|
|
|
|
&& typeof HTMLVideoElement !== 'undefined'
|
|
|
|
&& typeof ImageData !== 'undefined'
|
|
|
|
&& typeof CanvasRenderingContext2D !== 'undefined';
|
|
|
|
}
|
2020-08-20 02:05:34 +02:00
|
|
|
exports.isBrowser = isBrowser;
|
2020-08-18 14:04:33 +02:00
|
|
|
//# sourceMappingURL=isBrowser.js.map
|