summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js4
-rw-r--r--src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
index c6249ae..6ecc355 100644
--- a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
@@ -147,7 +147,7 @@ export class MlkBookmarkSubmissionForm extends HTMLElement {
let searchParams = new URLSearchParams({'uri': this.uriInput.value});
console.log(`/bookmarks/page-info?${searchParams.toString()}`);
let fetchUrl = new URL(`/bookmarks/page-info?${searchParams.toString()}`, document.URL);
- let r = await fetch(fetchUrl);
+ let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}});
this.uriSpinner.hidden = true;
this.uriSpinner.playing = false;
@@ -165,7 +165,7 @@ export class MlkBookmarkSubmissionForm extends HTMLElement {
}
let fetchUrl = new URL(`/posts/${this.editedId}`, document.URL);
- let r = await fetch(fetchUrl);
+ let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}});
if (!r.ok) {
return;
diff --git a/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js b/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
index 3dce33d..c6334ad 100644
--- a/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
@@ -100,7 +100,7 @@ export class MlkLazychatSubmissionForm extends HTMLElement {
}
let fetchUrl = new URL(`/posts/${this.editedId}`, document.URL);
- let r = await fetch(fetchUrl);
+ let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}});
if (!r.ok) {
return;