decord/source/963_isBrowser.js
2026-07-21 22:01:30 +00:00

24 lines
581 B
JavaScript

// Module ID: 963
// Function ID: 10429
// Name: isBrowser
// Dependencies: []
// Module 963 (isBrowser)
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.isBrowser = function isBrowser() {
let tmp = "undefined" !== typeof window;
if (tmp) {
let tmp4 = !arg1(arg6[0]).isNodeEnv();
if (!tmp4) {
const _process = arg1(arg6[1]).GLOBAL_OBJ.process;
let type;
if (null != _process) {
type = _process.type;
}
tmp4 = "renderer" === type;
}
tmp = tmp4;
const obj = arg1(arg6[0]);
}
return tmp;
};