autosaving works now ok??
mellbacon committed
Aug 17, 2022 at 19:01 UTC
2f37b052611147f42cc80b9324b8afd85b54ca7d
1 file changed
+1
-1
src/components/Content/Editor/Tabs.ts
+1
-1
@@ -5,7 +5,6 @@ import CodeMirrorEditor from './CodeMirrorEditor.svelte';
5
export let tabs = writable([]);
6
export let hidden = writable(true);
7
8
-let x = undefined;
8
class Tab {
9
label: string;
10
path: string;
@@ -23,6 +22,7 @@ class Tab {
22
this.editorcontent = editorcontent
23
this.saved = saved;
24
25
+ let x = undefined;
26
this.editor.$on("input", (e) => {
27
clearTimeout(x);
28
x = setTimeout(() => {