From f2998cfbd5e693bfa1f55da20db2bde9e68b9738 Mon Sep 17 00:00:00 2001 From: proitlab Date: Tue, 23 Dec 2025 13:21:21 +0700 Subject: [PATCH] Upgrade 1.2.0 --- main.js | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index eae0f06..a3b4c4c 100644 --- a/main.js +++ b/main.js @@ -14,6 +14,8 @@ let device_id = machineIdSync() // Define the path to your config file (e.g., in the user's app data directory) const configPath = path.join(app.getPath('userData'), 'config.json'); +//console.log(app.getPath('userData')) + function loadConfig() { if (fs.existsSync(configPath)) { try { @@ -28,10 +30,12 @@ function loadConfig() { return null; // Return null or default config if the file doesn't exist } -const config = loadConfig() || { url_address: 'https://nexus.manage.backone.cloud/' }; +const config = loadConfig() || { url_address: 'https://nexus.manage.backone.cloud/login/', url_filter: 'https://*.manage.backone.cloud/*' }; + +//console.log(config.url_address) const filter = { - urls: [`${config.url_address}*`] + urls: [config.url_filter] } diff --git a/package.json b/package.json index a9a9157..53c7c97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "BackOneClient", - "version": "1.1.0", + "version": "1.2.0", "main": "main.js", "scripts": { "start": "electron-forge start",