reanme useDataStore to syncDataStore
This commit is contained in:
parent
9d1dcd4b42
commit
ebac545c7a
1 changed files with 3 additions and 3 deletions
|
|
@ -42,16 +42,16 @@ export async function importSettings(data: string) {
|
|||
throw new Error("Invalid Settings. Is this even a Vencord Settings file?");
|
||||
}
|
||||
|
||||
export async function exportSettings({ useDataStore = true, minify }: { useDataStore?: boolean; minify?: boolean; }) {
|
||||
export async function exportSettings({ syncDataStore = true, minify }: { syncDataStore?: boolean; minify?: boolean; }) {
|
||||
const settings = VencordNative.settings.get();
|
||||
const quickCss = await VencordNative.quickCss.get();
|
||||
const dataStore = useDataStore ? await DataStore.entries() : undefined;
|
||||
const dataStore = syncDataStore ? await DataStore.entries() : undefined;
|
||||
|
||||
return JSON.stringify(
|
||||
{
|
||||
settings,
|
||||
quickCss,
|
||||
...(useDataStore && { dataStore })
|
||||
...(syncDataStore && { dataStore })
|
||||
},
|
||||
null,
|
||||
minify ? undefined : 4
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue