We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1507862 commit c6bd014Copy full SHA for c6bd014
src/lib/stores/preferences.ts
@@ -74,7 +74,7 @@ function createPreferences() {
74
/**
75
* Update the local store and then synchronizes them on user prefs.
76
*/
77
- function updateAndSync(callback: (prefs: PreferencesStore) => void) {
+ function updateAndSync(callback: (prefs: PreferencesStore) => void): Promise<void> {
78
let oldPrefsSnapshot: PreferencesStore;
79
let newPrefsSnapshot: PreferencesStore;
80
@@ -90,7 +90,7 @@ function createPreferences() {
90
}
91
92
// sync the preferences.
93
- updateConsolePreferences(newPrefsSnapshot);
+ return updateConsolePreferences(newPrefsSnapshot);
94
95
96
return {
0 commit comments