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 4f0f073 commit 100cb02Copy full SHA for 100cb02
static/js/custom.js
@@ -194,7 +194,7 @@ document.onpointerdown = ()=>{
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
@@ -218,9 +218,13 @@ function webShare() {
218
});
219
}
220
221
-window.addEventListener('DOMContentLoaded', (event) => {
+if( document.readyState !== 'loading' ) {
222
webShare();
223
-});
+} else {
224
+ document.addEventListener('DOMContentLoaded', function () {
225
+ webShare();
226
+ });
227
+}
228
229
// remove dashboard iframe on mobile
230
0 commit comments