File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
components/_util/hooks/_vueuse Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export interface ConfigurableLocation {
28
28
location ?: Location ;
29
29
}
30
30
31
- export const defaultWindow = /* #__PURE__ */ isClient ? window : undefined ;
32
- export const defaultDocument = /* #__PURE__ */ isClient ? window . document : undefined ;
33
- export const defaultNavigator = /* #__PURE__ */ isClient ? window . navigator : undefined ;
34
- export const defaultLocation = /* #__PURE__ */ isClient ? window . location : undefined ;
31
+ export const defaultWindow = isClient ? window : undefined ;
32
+ export const defaultDocument = isClient ? window . document : undefined ;
33
+ export const defaultNavigator = isClient ? window . navigator : undefined ;
34
+ export const defaultLocation = isClient ? window . location : undefined ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const rand = (min: number, max: number) => {
21
21
return Math . floor ( Math . random ( ) * ( max - min + 1 ) ) + min ;
22
22
} ;
23
23
export const isIOS =
24
- /* #__PURE__ */ isClient &&
24
+ isClient &&
25
25
window ?. navigator ?. userAgent &&
26
26
/ i P ( a d | h o n e | o d ) / . test ( window . navigator . userAgent ) ;
27
27
export const hasOwn = < T extends object , K extends keyof T > ( val : T , key : K ) : key is K =>
You can’t perform that action at this time.
0 commit comments