Skip to content

Commit

Permalink
fix: avoid functions in settings object to break saving
Browse files Browse the repository at this point in the history
  • Loading branch information
philhk committed Mar 23, 2024
1 parent f19d6de commit 45e4fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ SettingsStore.addGlobalChangeListener((_, path) => {
SettingsStore.plain.cloud.settingsSyncVersion = Date.now();
localStorage.Vencord_settingsDirty = true;
saveSettingsOnFrequentAction();
VencordNative.settings.set(SettingsStore.plain, path);
VencordNative.settings.set(/* This is really bad but it works */JSON.parse(JSON.stringify(SettingsStore.plain)), path);
});

/**
Expand Down

0 comments on commit 45e4fa1

Please sign in to comment.