mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-24 00:59:09 -05:00
fix for SettingsSync DataStore (#149)
This commit is contained in:
parent
4c1a5fc165
commit
a87b19da2c
1 changed files with 2 additions and 2 deletions
|
@ -35,11 +35,11 @@ export async function importSettings(data: string) {
|
|||
throw new Error("Failed to parse JSON: " + String(err));
|
||||
}
|
||||
|
||||
if ("settings" in parsed && "quickCss" in parsed && "dataStore" in parsed) {
|
||||
if ("settings" in parsed && "quickCss" in parsed) {
|
||||
Object.assign(PlainSettings, parsed.settings);
|
||||
await VencordNative.settings.set(parsed.settings);
|
||||
await VencordNative.quickCss.set(parsed.quickCss);
|
||||
await DataStore.setMany(parsed.dataStore);
|
||||
if (parsed.dataStore) await DataStore.setMany(parsed.dataStore);
|
||||
} else
|
||||
throw new Error("Invalid Settings. Is this even an Equicord Settings file?");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue