From 65f367674655dc6c202d52ecf32f54e358607cad Mon Sep 17 00:00:00 2001 From: JulienMaille <182520+JulienMaille@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:00:39 +0000 Subject: [PATCH] style: auto-fix linting issues --- neutralino.config.dev.json | 2 +- public/neutralino_loader.html | 10 +++++----- scripts/dev-runner.js | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/neutralino.config.dev.json b/neutralino.config.dev.json index a06782d..65b45f7 100644 --- a/neutralino.config.dev.json +++ b/neutralino.config.dev.json @@ -45,4 +45,4 @@ } ], "nativeAllowList": ["app.exit", "window.*", "extensions.*", "filesystem.*", "events.*", "os.*"] -} \ No newline at end of file +} diff --git a/public/neutralino_loader.html b/public/neutralino_loader.html index a3bdb30..954d5ae 100644 --- a/public/neutralino_loader.html +++ b/public/neutralino_loader.html @@ -48,20 +48,20 @@ // Simplified Dev Mode Detection using Neutralino's internal args // 'neu run' adds --neu-dev-auto-reload, which we can use to detect dev environment. const args = window.NL_ARGS || []; - const isDev = args.some(arg => arg.includes('--neu-dev-auto-reload') || arg.includes('--debug-mode')); - + const isDev = args.some((arg) => arg.includes('--neu-dev-auto-reload') || arg.includes('--debug-mode')); + // Static Dev Port const DEV_PORT = '5173'; let port = window.NL_PORT || sessionStorage.getItem('NL_PORT') || '5050'; const iframe = document.getElementById('app-frame'); - + const targetPort = isDev ? DEV_PORT : port; const targetUrl = `http://localhost:${targetPort}/?mode=neutralino`; - + if (isDev) { console.log(`[Shell] Dev mode detected via NL_ARGS. Waiting 2s for Vite on port ${targetPort}...`); - await new Promise(r => setTimeout(r, 2000)); + await new Promise((r) => setTimeout(r, 2000)); } else { console.log(`[Shell] Production mode detected.`); } diff --git a/scripts/dev-runner.js b/scripts/dev-runner.js index f156c61..1ecf5bc 100644 --- a/scripts/dev-runner.js +++ b/scripts/dev-runner.js @@ -55,7 +55,6 @@ async function run() { restoreConfig(); process.exit(code); }); - } catch (e) { console.error('Error running dev environment:', e); restoreConfig();