Browse Source

fix: remove /* #__PURE__*/ comments (#7156)

feat-4.1
Jacky 11 months ago committed by GitHub
parent
commit
562623c091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/_util/hooks/_vueuse/_configurable.ts
  2. 2
      components/_util/hooks/_vueuse/is.ts

8
components/_util/hooks/_vueuse/_configurable.ts

@ -28,7 +28,7 @@ export interface ConfigurableLocation {
location?: Location;
}
export const defaultWindow = /* #__PURE__ */ isClient ? window : undefined;
export const defaultDocument = /* #__PURE__ */ isClient ? window.document : undefined;
export const defaultNavigator = /* #__PURE__ */ isClient ? window.navigator : undefined;
export const defaultLocation = /* #__PURE__ */ isClient ? window.location : undefined;
export const defaultWindow = isClient ? window : undefined;
export const defaultDocument = isClient ? window.document : undefined;
export const defaultNavigator = isClient ? window.navigator : undefined;
export const defaultLocation = isClient ? window.location : undefined;

2
components/_util/hooks/_vueuse/is.ts

@ -21,7 +21,7 @@ export const rand = (min: number, max: number) => {
return Math.floor(Math.random() * (max - min + 1)) + min;
};
export const isIOS =
/* #__PURE__ */ isClient &&
isClient &&
window?.navigator?.userAgent &&
/iP(ad|hone|od)/.test(window.navigator.userAgent);
export const hasOwn = <T extends object, K extends keyof T>(val: T, key: K): key is K =>

Loading…
Cancel
Save