routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
export const IN_BROWSER = typeof window !== 'undefined';
|
||||
export const SUPPORTS_INTERSECTION = IN_BROWSER && 'IntersectionObserver' in window;
|
||||
export const SUPPORTS_TOUCH = IN_BROWSER && ('ontouchstart' in window || window.navigator.maxTouchPoints > 0);
|
||||
export const SUPPORTS_EYE_DROPPER = IN_BROWSER && 'EyeDropper' in window;
|
||||
export const SUPPORTS_MATCH_MEDIA = IN_BROWSER && 'matchMedia' in window && typeof window.matchMedia === 'function';
|
||||
export const PREFERS_REDUCED_MOTION = () => SUPPORTS_MATCH_MEDIA && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
//# sourceMappingURL=globals.js.map
|
||||
Reference in New Issue
Block a user