You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
688 B

2 weeks ago
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.isProxyAvailable = exports.getTarget = exports.getDevtoolsGlobalHook = void 0;
  4. function getDevtoolsGlobalHook() {
  5. return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
  6. }
  7. exports.getDevtoolsGlobalHook = getDevtoolsGlobalHook;
  8. function getTarget() {
  9. // @ts-expect-error navigator and windows are not available in all environments
  10. return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
  11. ? window
  12. : typeof globalThis !== 'undefined'
  13. ? globalThis
  14. : {};
  15. }
  16. exports.getTarget = getTarget;
  17. exports.isProxyAvailable = typeof Proxy === 'function';