mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 21:53:04 -04:00
fix for SettingsSync DataStore (#149)
This commit is contained in:
parent
03d55517f2
commit
cbdafae3f4
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
Add a link
Reference in a new issue