From fd8c4ae33cebe627e6c9d3ef10f8ba4a503d2b25 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Wed, 21 Jan 2026 11:16:53 +0100 Subject: [PATCH] Fix: Check Info config every request --- public/script/fetchinfo.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/script/fetchinfo.js b/public/script/fetchinfo.js index 9db3040..af9c9b7 100644 --- a/public/script/fetchinfo.js +++ b/public/script/fetchinfo.js @@ -25,10 +25,9 @@ async function fetchVideoInfo(url) { return { error: "Network or JSON Issue" }; } } -async function init() { - const configFeatures = await window.electronAPI.getFeatures(); - if (!configFeatures.autoCheckInfo) return; + +async function init() { document.addEventListener("DOMContentLoaded", () => { const urlInput = document.getElementById("UrlInput"); @@ -38,6 +37,10 @@ async function init() { let lastFetchedUrl = ""; urlInput.addEventListener("input", async () => { + + const configFeatures = await window.electronAPI.getFeatures(); + if (!configFeatures.autoCheckInfo) return; + const url = urlInput.value.trim(); // Si champ vide -> reset total