IOTConnect-Web/node_modules/@vue/devtools-api/lib/esm/env.js

13 lines
457 B
JavaScript
Raw Permalink Normal View History

2024-05-09 01:49:52 +00:00
export function getDevtoolsGlobalHook() {
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
export function getTarget() {
// @ts-expect-error navigator and windows are not available in all environments
return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
? window
: typeof globalThis !== 'undefined'
? globalThis
: {};
}
export const isProxyAvailable = typeof Proxy === 'function';