From 1154cee2a97e0554d1d1f0090ae4bda5e1359b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 8 Apr 2022 15:04:28 +0200 Subject: [PATCH] :blue_book: Fix type error --- .../editor-ui/src/components/mixins/deviceSupportHelpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts b/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts index 85ccd9c6a0cee..f47b9e208d9b3 100644 --- a/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts +++ b/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts @@ -3,8 +3,8 @@ import Vue from 'vue'; export const deviceSupportHelpers = Vue.extend({ data() { return { - isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints, - isMacOs: /(ipad|iphone|ipod|mac)/i.test(navigator.platform), + isTouchDevice: 'ontouchstart' in window || navigator.maxTouchPoints, + isMacOs: /(ipad|iphone|ipod|mac)/i.test(navigator.platform), // TODO: `platform` deprecated }; }, computed: {