Fix Lint
This commit is contained in:
parent
ebac545c7a
commit
90b1360aa7
2 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ import { exportSettings, importSettings } from "./offline";
|
|||
const logger = new Logger("SettingsSync:Cloud", "#39b7e0");
|
||||
|
||||
export async function putCloudSettings(manual?: boolean) {
|
||||
const settings = await exportSettings({ useDataStore: false, minify: true });
|
||||
const settings = await exportSettings({ syncDataStore: false, minify: true });
|
||||
|
||||
try {
|
||||
const res = await fetch(new URL("/v1/settings", getCloudUrl()), {
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ export async function importSettings(data: string) {
|
|||
Object.assign(PlainSettings, parsed.settings);
|
||||
await VencordNative.settings.set(parsed.settings);
|
||||
await VencordNative.quickCss.set(parsed.quickCss);
|
||||
if (parsed.dataStore) await DataStore.setMany(parsed.dataStore);
|
||||
} else
|
||||
throw new Error("Invalid Settings. Is this even a Vencord Settings file?");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue