use process.cwd() for correct path

This commit is contained in:
Karsten Hassel
2021-07-13 23:39:55 +02:00
parent 9aa0af4f9c
commit e75e4e2284
43 changed files with 61 additions and 57 deletions

View File

@@ -4,21 +4,24 @@
* MIT Licensed.
*/
exports.configFactory = function (options) {
return Object.assign({
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
return Object.assign(
{
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
language: "en",
timeFormat: 24,
units: "metric",
electronOptions: {
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
}
language: "en",
timeFormat: 24,
units: "metric",
electronOptions: {
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
}
},
modules: []
},
modules: []
}, options);
options
);
};