Upgrade 1.2.0

This commit is contained in:
2025-12-23 13:21:21 +07:00
parent 883c8ed603
commit f2998cfbd5
2 changed files with 7 additions and 3 deletions

View File

@@ -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]
}

View File

@@ -1,6 +1,6 @@
{
"name": "BackOneClient",
"version": "1.1.0",
"version": "1.2.0",
"main": "main.js",
"scripts": {
"start": "electron-forge start",