From 6fa34e715aa39e2bec49204699d09392c1191c28 Mon Sep 17 00:00:00 2001 From: gitplus Date: Sat, 2 Mar 2024 09:56:03 +0800 Subject: [PATCH] style: remove /* #__PURE__*/ comments (#7392) --- components/_util/hooks/_vueuse/_configurable.ts | 8 ++++---- components/_util/hooks/_vueuse/is.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/_util/hooks/_vueuse/_configurable.ts b/components/_util/hooks/_vueuse/_configurable.ts index 1d1e001d4..a32d33939 100644 --- a/components/_util/hooks/_vueuse/_configurable.ts +++ b/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; diff --git a/components/_util/hooks/_vueuse/is.ts b/components/_util/hooks/_vueuse/is.ts index 52b4e9a30..2fd86bd47 100644 --- a/components/_util/hooks/_vueuse/is.ts +++ b/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 = (val: T, key: K): key is K =>