fix: remove /* #__PURE__*/ comments (#7156)
parent
e362571719
commit
562623c091
|
@ -28,7 +28,7 @@ export interface ConfigurableLocation {
|
||||||
location?: Location;
|
location?: Location;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defaultWindow = /* #__PURE__ */ isClient ? window : undefined;
|
export const defaultWindow = isClient ? window : undefined;
|
||||||
export const defaultDocument = /* #__PURE__ */ isClient ? window.document : undefined;
|
export const defaultDocument = isClient ? window.document : undefined;
|
||||||
export const defaultNavigator = /* #__PURE__ */ isClient ? window.navigator : undefined;
|
export const defaultNavigator = isClient ? window.navigator : undefined;
|
||||||
export const defaultLocation = /* #__PURE__ */ isClient ? window.location : undefined;
|
export const defaultLocation = isClient ? window.location : undefined;
|
||||||
|
|
|
@ -21,7 +21,7 @@ export const rand = (min: number, max: number) => {
|
||||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||||
};
|
};
|
||||||
export const isIOS =
|
export const isIOS =
|
||||||
/* #__PURE__ */ isClient &&
|
isClient &&
|
||||||
window?.navigator?.userAgent &&
|
window?.navigator?.userAgent &&
|
||||||
/iP(ad|hone|od)/.test(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 =>
|
export const hasOwn = <T extends object, K extends keyof T>(val: T, key: K): key is K =>
|
||||||
|
|
Loading…
Reference in New Issue