Ensure to clear timeout in autosave
We are still trying to ensure autosave is not called outside the /implement route. Relates to CODEOCEAN-G1
This commit is contained in:
@ -988,8 +988,8 @@ var CodeOceanEditor = {
|
||||
this.initializeDeadlines();
|
||||
CodeOceanEditorTips.initializeEventHandlers();
|
||||
|
||||
window.addEventListener("turbolinks:before-render", this.unloadAutoSave.bind(this));
|
||||
window.addEventListener("beforeunload", this.unloadAutoSave.bind(this));
|
||||
window.addEventListener("turbolinks:before-render", this.autosaveIfChanged.bind(this));
|
||||
window.addEventListener("beforeunload", this.autosaveIfChanged.bind(this));
|
||||
// create autosave when the editor is opened the first time
|
||||
this.autosave();
|
||||
}
|
||||
|
Reference in New Issue
Block a user