Browse Source

style: remove /* #__PURE__*/ comments (#7392)

3.x
gitplus 9 months ago committed by GitHub
parent
commit
6fa34e715a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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