aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/common/js/shaare-batch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/common/js/shaare-batch.js b/assets/common/js/shaare-batch.js
index 9753137d..4a1fdb2e 100644
--- a/assets/common/js/shaare-batch.js
+++ b/assets/common/js/shaare-batch.js
@@ -30,9 +30,9 @@ const sendBookmarkForm = (basePath, formElement) => {
30const sendBookmarkDelete = (buttonElement, formElement) => ( 30const sendBookmarkDelete = (buttonElement, formElement) => (
31 new Promise((resolve, reject) => { 31 new Promise((resolve, reject) => {
32 const xhr = new XMLHttpRequest(); 32 const xhr = new XMLHttpRequest();
33 xhr.open('GET', buttonElement.href); 33 xhr.open('GET', `${buttonElement.href}&source=batch`);
34 xhr.onload = () => { 34 xhr.onload = () => {
35 if (xhr.status !== 200) { 35 if (xhr.status !== 204) {
36 alert(`An error occurred. Return code: ${xhr.status}`); 36 alert(`An error occurred. Return code: ${xhr.status}`);
37 reject(); 37 reject();
38 } else { 38 } else {