Update index.html
Browse files- index.html +15 -1
index.html
CHANGED
|
@@ -18,7 +18,8 @@
|
|
| 18 |
<iframe
|
| 19 |
src="https://kgmenu-example.hf.space/"
|
| 20 |
frameborder="0"
|
| 21 |
-
allowfullscreen
|
|
|
|
| 22 |
|
| 23 |
<button id="installButton">Установить приложение</button>
|
| 24 |
<button id="iosInstallPrompt">Установить приложение</button>
|
|
@@ -128,6 +129,19 @@
|
|
| 128 |
});
|
| 129 |
});
|
| 130 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
</script>
|
| 132 |
</body>
|
| 133 |
</html>
|
|
|
|
| 18 |
<iframe
|
| 19 |
src="https://kgmenu-example.hf.space/"
|
| 20 |
frameborder="0"
|
| 21 |
+
allowfullscreen
|
| 22 |
+
allow="cross-origin-isolated; cookies"></iframe>
|
| 23 |
|
| 24 |
<button id="installButton">Установить приложение</button>
|
| 25 |
<button id="iosInstallPrompt">Установить приложение</button>
|
|
|
|
| 129 |
});
|
| 130 |
});
|
| 131 |
}
|
| 132 |
+
|
| 133 |
+
// Отладка сообщений от iframe
|
| 134 |
+
window.addEventListener('message', (event) => {
|
| 135 |
+
console.log('Сообщение от iframe:', event.data);
|
| 136 |
+
if (event.origin === 'https://kgmenu-example.hf.space') {
|
| 137 |
+
console.log('Сообщение от целевого iframe:', event.data);
|
| 138 |
+
}
|
| 139 |
+
});
|
| 140 |
+
|
| 141 |
+
// Перехват ошибок
|
| 142 |
+
window.addEventListener('error', (event) => {
|
| 143 |
+
console.error('Произошла ошибка:', event.message, event.filename, event.lineno);
|
| 144 |
+
});
|
| 145 |
</script>
|
| 146 |
</body>
|
| 147 |
</html>
|