From 8407c6a958b0f0df8ac67cb57f93d511a0d99ca0 Mon Sep 17 00:00:00 2001 From: thonk Date: Tue, 21 Jan 2025 00:16:29 -0500 Subject: [PATCH] improve youtube support --- static/assets/js/t.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/assets/js/t.js b/static/assets/js/t.js index 82108e926..71c30fca2 100644 --- a/static/assets/js/t.js +++ b/static/assets/js/t.js @@ -53,7 +53,7 @@ document.addEventListener("DOMContentLoaded", event => { const tabTitle = document.createElement("span"); const newIframe = document.createElement("iframe"); newIframe.sandbox = - "allow-same-origin allow-scripts allow-forms allow-pointer-lock allow-modals allow-orientation-lock"; + "allow-same-origin allow-scripts allow-forms allow-pointer-lock allow-modals allow-orientation-lock allow-presentation allow-storage-access-by-user-activation"; // When Top Navigation is not allowed links with the "top" value will be entirely blocked, if we allow Top Navigation it will overwrite the tab, which is obviously not wanted. tabTitle.textContent = `New Tab ${tabCounter}`; tabTitle.className = "t";