You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 14:33:52 +01:00
config save fix
This commit is contained in:
@@ -113,6 +113,7 @@ function deepMerge(target, source) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
configSave();
|
||||||
}
|
}
|
||||||
|
|
||||||
function configUpdate(newConfig) {
|
function configUpdate(newConfig) {
|
||||||
@@ -144,7 +145,6 @@ if (configExists()) {
|
|||||||
const configFile = JSON.parse(configFileContents);
|
const configFile = JSON.parse(configFileContents);
|
||||||
deepMerge(configFile, serverConfig);
|
deepMerge(configFile, serverConfig);
|
||||||
serverConfig = configFile;
|
serverConfig = configFile;
|
||||||
configSave();
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logError('Error parsing config file:', err);
|
logError('Error parsing config file:', err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user