Skip to content

Commit

Permalink
📘 Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Apr 8, 2022
1 parent ca40d7f commit 1154cee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 1154cee

Please sign in to comment.