Spaces:
Running
Running
Update fullscreen_playcanvas.js
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|