fix: «{{.Post.ID}} appears in a JS template literal»

This commit is contained in:
Florian Sylvain
2024-06-13 14:03:21 +02:00
parent c25fb1b0a3
commit 26984980b7
@@ -51,7 +51,7 @@
images_upload_handler: (blobInfo, progress) => new Promise((resolve, reject) => { images_upload_handler: (blobInfo, progress) => new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.withCredentials = false; xhr.withCredentials = false;
xhr.open('POST', `/post/{{.Post.ID}}/image/create`); xhr.open('POST', "/post/{{.Post.ID}}/image/create");
xhr.upload.onprogress = (e) => { xhr.upload.onprogress = (e) => {
progress(e.loaded / e.total * 100); progress(e.loaded / e.total * 100);