mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fix loading default config
without this change, if the user doesn't have a valid config on disk, they just get a white screen on startup due to `nconf.required` throwing an exception.
This commit is contained in:
parent
fd63cc7fa7
commit
7099d2e379
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ const defaultConfig = {
|
|||
},
|
||||
};
|
||||
|
||||
nconf.defaults(defaultConfig.local);
|
||||
nconf.defaults(defaultConfig);
|
||||
nconf.required(["local:host", "local:port"]);
|
||||
|
||||
export const settingsStore = reactive(defaultConfig);
|
||||
|
|
Loading…
Reference in a new issue