autosave: make requests time out

This avoids recent requests being stuck because an older request never
finished.
This commit is contained in:
Pierre de La Morinerie 2019-11-19 16:55:36 +00:00
parent 68f5aae99d
commit 6de5c0c9d1
3 changed files with 18 additions and 3 deletions

View file

@ -14,7 +14,7 @@ const AUTOSAVE_DEBOUNCE_DELAY = gon.autosave.debounce_delay;
const AUTOSAVE_STATUS_VISIBLE_DURATION = gon.autosave.status_visible_duration;
// Create a controller responsible for queuing autosave operations.
const autosaveController = new AutosaveController(AUTOSAVE_DEBOUNCE_DELAY);
const autosaveController = new AutosaveController();
// Whenever a 'change' event is triggered on one of the form inputs, try to autosave.