Skip to content

Commit

Permalink
fix: replace /* #__PURE__*/ comment with /* #__NO_SIDE_EFFECTS__ */
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Dec 2, 2023
1 parent e362571 commit a4b8fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/_util/hooks/_vueuse/_configurable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = /* #__NO_SIDE_EFFECTS__ */ isClient ? window : undefined;
export const defaultDocument = /* #__NO_SIDE_EFFECTS__ */ isClient ? window.document : undefined;
export const defaultNavigator = /* #__NO_SIDE_EFFECTS__ */ isClient ? window.navigator : undefined;
export const defaultLocation = /* #__NO_SIDE_EFFECTS__ */ isClient ? window.location : undefined;
2 changes: 1 addition & 1 deletion components/_util/hooks/_vueuse/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
/* #__NO_SIDE_EFFECTS__ */ 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 =>
Expand Down

0 comments on commit a4b8fd1

Please sign in to comment.