[Glitch] Change web client settings to be saved earlier and more often
Port 00dbefdbbff4bf7edce2fdad1a6c1832f3f345de to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
180e9e5d70
commit
3c0775c9b1
@ -29,7 +29,7 @@ const debouncedSave = debounce((dispatch, getState) => {
|
||||
api().put('/api/web/settings', { data })
|
||||
.then(() => dispatch({ type: SETTING_SAVE }))
|
||||
.catch(error => dispatch(showAlertForError(error)));
|
||||
}, 5000, { trailing: true });
|
||||
}, 2000, { leading: true, trailing: true });
|
||||
|
||||
export function saveSettings() {
|
||||
return (dispatch, getState) => debouncedSave(dispatch, getState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user