Browse Source

Fix missing utility function.

Haocen Xu 7 năm trước cách đây
mục cha
commit
5c77407061
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      client/components/cards/cardDetails.js
  2. 1 0
      client/lib/utils.js

+ 1 - 1
client/components/cards/cardDetails.js

@@ -1,5 +1,5 @@
 const subManager = new SubsManager();
-const { calculateIndexData } = Utils;
+const { calculateIndexData, enableClickOnTouch } = Utils;
 
 BlazeComponent.extendComponent({
   mixins() {

+ 1 - 0
client/lib/utils.js

@@ -113,6 +113,7 @@ Utils = {
       const query = ['(', prefixes.join('touch-enabled),('), 'heartz', ')'].join('');
       return mq(query);
     })();
+    Utils.isTouchDevice = () => isTouchable;
     return isTouchable;
   },