diff options
Diffstat (limited to 'library/cropperjs/src/js/constants.js')
-rw-r--r-- | library/cropperjs/src/js/constants.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cropperjs/src/js/constants.js b/library/cropperjs/src/js/constants.js index 015fcbcdd..4f85d60d9 100644 --- a/library/cropperjs/src/js/constants.js +++ b/library/cropperjs/src/js/constants.js @@ -1,6 +1,6 @@ export const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined'; export const WINDOW = IS_BROWSER ? window : {}; -export const IS_TOUCH_DEVICE = IS_BROWSER ? 'ontouchstart' in WINDOW.document.documentElement : false; +export const IS_TOUCH_DEVICE = IS_BROWSER && WINDOW.document.documentElement ? 'ontouchstart' in WINDOW.document.documentElement : false; export const HAS_POINTER_EVENT = IS_BROWSER ? 'PointerEvent' in WINDOW : false; export const NAMESPACE = 'cropper'; |