From 30eeac9ab4aee6d9d730d1d2a6f3dcbce433e77e Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 3 Jul 2024 21:24:07 -0300 Subject: [PATCH] Update --- view/js/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/js/script.js b/view/js/script.js index dd51a13ebb35..c0c12da0f342 100644 --- a/view/js/script.js +++ b/view/js/script.js @@ -4365,10 +4365,12 @@ function callFunctionOrLoadScript(funcName, jsUrl, ...args) { const script = document.createElement('script'); script.src = jsUrl; + console.error(`Function ${funcName} not found loading script ${jsUrl}`); // Define what happens when the script is loaded script.onload = function() { // Check again if the function exists after loading the script if (typeof window[funcName] === 'function') { + console.error(`Function ${funcName} found after loading script ${jsUrl}`); window[funcName](...args); } else { console.error(`Function ${funcName} does not exist even after loading the script.`);