diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-09 15:00:40 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-10 17:20:55 +0800 |
commit | 7ba3a70473b0a1748ca4d1dbb657fd43683094eb (patch) | |
tree | bb5e1d316c355a75aa84f8d8b5b53c63ff1f92c9 /src | |
parent | 3241ce124ba02e79a01231dbd2efd08e2d181b30 (diff) |
revert: Don't warn when save cancels
Diffstat (limited to 'src')
-rw-r--r-- | src/editor.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index 31229db..dd18a31 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -87,7 +87,7 @@ const saveContent = (content) => { | |||
87 | localStorage.setItem('editorContent', content) | 87 | localStorage.setItem('editorContent', content) |
88 | resolve('Content Saved') | 88 | resolve('Content Saved') |
89 | }, 3000) | 89 | }, 3000) |
90 | }).catch((err) => console.warn('Fail to save content', err)) | 90 | }).catch(() => null) |
91 | } | 91 | } |
92 | 92 | ||
93 | // Render HTML to result container and save current content | 93 | // Render HTML to result container and save current content |