This commit is contained in:
thororen1234 2025-12-04 12:07:19 -05:00
parent ebac545c7a
commit 90b1360aa7
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -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()), {

View file

@ -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?");
}