From 562623c0914dabedbad6f5ac4416194c747cfe99 Mon Sep 17 00:00:00 2001 From: Jacky Date: Mon, 18 Dec 2023 10:21:15 +0800 Subject: [PATCH] fix: remove /* #__PURE__*/ comments (#7156) --- 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..858fccc7d 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..a17b11428 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 =>