1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00

Improve search form

This commit is contained in:
Daniel Neto 2025-02-11 11:09:02 -03:00
parent be16a356f6
commit 4c305903e5
5 changed files with 23 additions and 27 deletions

View file

@ -86,6 +86,7 @@ if (window.navigator.standalone || window.matchMedia('(display-mode: standalone)
document.body.classList.add('pwa');
}
var queryString = window.location.search;
var urlParams = new URLSearchParams(queryString);
@ -93,6 +94,10 @@ if (urlParams.has('debug')) {
isDebuging = false;
}
function getSearchParam(param) {
return urlParams.get(param) || "";
}
function forwardToIframe(data) {
var iframe = document.getElementById('avideoModalIframe'); // Get the iframe by ID
if (iframe && iframe.contentWindow) {