fix default config saving
This commit is contained in:
parent
e447f2a355
commit
f8d1af1b0a
|
@ -0,0 +1,4 @@
|
||||||
|
- uri: wss://mppclone.com:8443
|
||||||
|
channel:
|
||||||
|
id: "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧"
|
||||||
|
allowColorChanging: true
|
|
@ -16,6 +16,7 @@ export function loadConfig<T>(path: string, defaultConfig: T) {
|
||||||
|
|
||||||
return data as T;
|
return data as T;
|
||||||
} else {
|
} else {
|
||||||
|
saveConfig(path, defaultConfig);
|
||||||
return defaultConfig;
|
return defaultConfig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue