Upgrade 1.2.0
This commit is contained in:
@@ -14,6 +14,8 @@ let device_id = machineIdSync()
|
|||||||
// Define the path to your config file (e.g., in the user's app data directory)
|
// 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');
|
const configPath = path.join(app.getPath('userData'), 'config.json');
|
||||||
|
|
||||||
|
//console.log(app.getPath('userData'))
|
||||||
|
|
||||||
function loadConfig() {
|
function loadConfig() {
|
||||||
if (fs.existsSync(configPath)) {
|
if (fs.existsSync(configPath)) {
|
||||||
try {
|
try {
|
||||||
@@ -28,10 +30,12 @@ function loadConfig() {
|
|||||||
return null; // Return null or default config if the file doesn't exist
|
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 = {
|
const filter = {
|
||||||
urls: [`${config.url_address}*`]
|
urls: [config.url_filter]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "BackOneClient",
|
"name": "BackOneClient",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron-forge start",
|
"start": "electron-forge start",
|
||||||
|
|||||||
Reference in New Issue
Block a user