Update to latest version
This commit is contained in:
1 parent
7125e29993
commit
c74ef9cf9c
15 files changed
+191
-70
No files matched your search
@@ -121,7 +121,7 @@ async function saveFile() {
|
||||
const form = new FormData();
|
||||
form.append('path', filePath);
|
||||
form.append('content', editor.value);
|
||||
const resp = await fetch('/api/files/save', { method: 'POST', body: form });
|
||||
const resp = await csrfFetch('/api/files/save', { method: 'POST', body: form });
|
||||
const data = await resp.json();
|
||||
if (!data.success) {
|
||||
error.textContent = 'Error: ' + (data.error || 'Failed to save file');
|
||||
|
||||
Reference in new issue
Block a user