@setoelkahfi / svara / commits / 9e7b599

fix: autosave value compared to string equivilent

mellbacon committed Aug 20, 2023 at 17:13 UTC 9e7b599824f1fe38d54ffe8843f19934bf7771b1
1 file changed +1 -1
src/lib/Editor.svelte
+1 -1
@@ -88,7 +88,7 @@
88 async function updateContent() {
89 await tick();
90 content = editorView.state.doc.toString();
91 - if (await appSettings.get("editor.autosave") === true) {
91 + if (await appSettings.get("editor.autosave") === "true") {
92 clearTimeout(_);
93 _ = setTimeout(async () => {
94 if (!$file_info.path || $file_info.path === $file_info.filename || $file_info.path === "") {