MikaFil commited on
Commit
175664b
·
verified ·
1 Parent(s): f469b12

Update fullscreen_playcanvas.js

Browse files
Files changed (1) hide show
  1. fullscreen_playcanvas.js +5 -1
fullscreen_playcanvas.js CHANGED
@@ -113,7 +113,11 @@
113
  inner.className = `pc-embed-inner-${id}`;
114
 
115
  const iframe = document.createElement('iframe');
116
- iframe.src = playcanvasUrl;
 
 
 
 
117
  iframe.setAttribute('allowfullscreen', '');
118
  iframe.setAttribute('allow', 'autoplay; fullscreen');
119
  iframe.setAttribute(
 
113
  inner.className = `pc-embed-inner-${id}`;
114
 
115
  const iframe = document.createElement('iframe');
116
+ const urlObj = new URL(playcanvasUrl);
117
+ urlObj.searchParams.set('overlay', 'false');
118
+ iframe.src = urlObj.href;
119
+
120
+
121
  iframe.setAttribute('allowfullscreen', '');
122
  iframe.setAttribute('allow', 'autoplay; fullscreen');
123
  iframe.setAttribute(