Renxy 1 рік тому
батько
коміт
31ddf62507
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/utils/utils.js

+ 3 - 0
src/utils/utils.js

@@ -145,11 +145,14 @@ export const UnityAction = {
     }
     }
   },
   },
 };
 };
+alert(window.vuplex);
 if (window.vuplex) {
 if (window.vuplex) {
+  alert('--------');
   window.vuplex.addEventListener('message', (e) => {
   window.vuplex.addEventListener('message', (e) => {
     console.log(
     console.log(
       '============================getMessageForUnity============================',
       '============================getMessageForUnity============================',
     );
     );
+    alert(data.message);
     const data = JSON.parse(e.data);
     const data = JSON.parse(e.data);
     console.log(data);
     console.log(data);
     UnityAction.emit(data.type, data.message);
     UnityAction.emit(data.type, data.message);