MCPcopy Index your code
hub / github.com/vuejs/devtools-v6 / getTarget

Function getTarget

packages/api/src/env.ts:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19export function getTarget(): GlobalTarget {
20 // @ts-expect-error navigator and windows are not available in all environments
21 return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
22 ? window
23 : typeof globalThis !== 'undefined'
24 ? globalThis
25 : {}
26}
27
28export const isProxyAvailable = typeof Proxy === 'function'

Callers 2

setupDevtoolsPluginFunction · 0.85
getDevtoolsGlobalHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected