From 3640e5ddd007330a64a4375a71d52940a723bb66 Mon Sep 17 00:00:00 2001 From: RohitKushvaha01 Date: Mon, 22 Dec 2025 18:10:06 +0530 Subject: [PATCH 1/2] fix: console --- src/lib/run.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/lib/run.js b/src/lib/run.js index 559c29ad6..f471c5cdd 100644 --- a/src/lib/run.js +++ b/src/lib/run.js @@ -189,7 +189,7 @@ async function run( isConsole || appSettings.value.console === appSettings.CONSOLE_LEGACY ) { - url = `${ASSETS_DIRECTORY}/js/build/console.build.js`; + url = `${ASSETS_DIRECTORY}/build/console.js`; } else { url = `${DATA_STORAGE}/eruda.js`; } @@ -343,22 +343,20 @@ async function run( theme: 'dark' }); - ${ - target === "inapp" - ? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';" - : "" - } + ${target === "inapp" + ? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';" + : "" + } sessionStorage.setItem('__console_available', true); document.addEventListener('showconsole', function () {eruda.show()}); document.addEventListener('hideconsole', function () {eruda.hide()}); }else if(document.querySelector('c-toggler')){ - ${ - target === "inapp" || - (target !== "inapp" && !appSettings.value.showConsoleToggler) - ? "document.querySelector('c-toggler').style.display = 'none';" - : "" - } + ${target === "inapp" || + (target !== "inapp" && !appSettings.value.showConsoleToggler) + ? "document.querySelector('c-toggler').style.display = 'none';" + : "" + } } setTimeout(function(){ var scripts = document.querySelectorAll('.${uuid}'); From edcffc92eb1a0cac9bbf3edf6f47f1144148b503 Mon Sep 17 00:00:00 2001 From: RohitKushvaha01 Date: Mon, 22 Dec 2025 18:11:05 +0530 Subject: [PATCH 2/2] format --- src/lib/run.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lib/run.js b/src/lib/run.js index f471c5cdd..b6dcc02b1 100644 --- a/src/lib/run.js +++ b/src/lib/run.js @@ -343,20 +343,22 @@ async function run( theme: 'dark' }); - ${target === "inapp" - ? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';" - : "" - } + ${ + target === "inapp" + ? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';" + : "" + } sessionStorage.setItem('__console_available', true); document.addEventListener('showconsole', function () {eruda.show()}); document.addEventListener('hideconsole', function () {eruda.hide()}); }else if(document.querySelector('c-toggler')){ - ${target === "inapp" || - (target !== "inapp" && !appSettings.value.showConsoleToggler) - ? "document.querySelector('c-toggler').style.display = 'none';" - : "" - } + ${ + target === "inapp" || + (target !== "inapp" && !appSettings.value.showConsoleToggler) + ? "document.querySelector('c-toggler').style.display = 'none';" + : "" + } } setTimeout(function(){ var scripts = document.querySelectorAll('.${uuid}');