From 3839704e774c35724b985d1bbd9a3ef4d8467ced Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 5 Mar 2020 17:10:48 +0100 Subject: [PATCH] Prevent autosave on window load --- app/assets/javascripts/editor/editor.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index 7d6584aa..f12cfcdf 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -784,6 +784,6 @@ configureEditors: function () { $(window).on("beforeunload", this.unloadAutoSave.bind(this)); // create autosave when the editor is opened the first time - this.autosave(); + // TODO: this.autosave(); } };