We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a50e5 commit 4f0f073Copy full SHA for 4f0f073
static/js/custom.js
@@ -193,6 +193,8 @@ document.onpointerdown = ()=>{
193
}
194
195
function webShare() {
196
+ console.log('start init web share feature');
197
+
198
var control = document.importNode(document.querySelector('template').content, true).childNodes[0];
199
control.addEventListener('pointerdown', oncontroldown);
200
@@ -216,11 +218,9 @@ function webShare() {
216
218
});
217
219
220
-document.onreadystatechange = function () {
- if (document.readyState == "interactive") {
221
- webShare();
222
- }
223
-}
+window.addEventListener('DOMContentLoaded', (event) => {
+ webShare();
+});
224
225
// remove dashboard iframe on mobile
226
0 commit comments