From dd0ad8dfa5a4cdab066602668ed182cb45098e10 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Oct 2021 11:57:39 +0200 Subject: Fix local/session storage polyfill --- client/src/standalone/videos/test-embed.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/standalone/videos') diff --git a/client/src/standalone/videos/test-embed.ts b/client/src/standalone/videos/test-embed.ts index 301c95d7b..a28a83cc1 100644 --- a/client/src/standalone/videos/test-embed.ts +++ b/client/src/standalone/videos/test-embed.ts @@ -15,6 +15,8 @@ window.addEventListener('load', async () => { ? `/video-playlists/embed/${elementId}?api=1` : `/videos/embed/${elementId}?api=1` + iframe.sandbox.add('allow-same-origin', 'allow-scripts', 'allow-popups') + const mainElement = document.querySelector('#host') mainElement.appendChild(iframe) -- cgit v1.2.3