Prevent duplication of content in ACE.
This commit is contained in:
@ -879,7 +879,7 @@ var CodeOceanEditor = {
|
||||
this.initializeDeadlines();
|
||||
CodeOceanEditorTips.initializeEventHandlers();
|
||||
|
||||
window.addEventListener("turbolinks:request-start", this.unloadAutoSave.bind(this));
|
||||
window.addEventListener("beforeunload", this.unloadAutoSave.bind(this));
|
||||
// create autosave when the editor is opened the first time
|
||||
this.autosave();
|
||||
}
|
||||
|
Reference in New Issue
Block a user