52569d6a47cda8b2f2e342245ebbff32f740dd46a7e02c4b9fb407d13c38ddddeec1e0bdb3791da3a2cbdf0d9cea744e4229c73c55d4bec9f44c9bec8aeb0f 457 B

123456789101112
  1. export function getDevtoolsGlobalHook() {
  2. return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3. }
  4. export function getTarget() {
  5. // @ts-expect-error navigator and windows are not available in all environments
  6. return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
  7. ? window
  8. : typeof globalThis !== 'undefined'
  9. ? globalThis
  10. : {};
  11. }
  12. export const isProxyAvailable = typeof Proxy === 'function';