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 557325ee..2b438045 100644
--- a/assets/common/js/shaare-batch.js
+++ b/assets/common/js/shaare-batch.js
@@ -26,9 +26,9 @@ const sendBookmarkForm = (basePath, formElement) => {
26const sendBookmarkDelete = (buttonElement, formElement) => ( 26const sendBookmarkDelete = (buttonElement, formElement) => (
27 new Promise((resolve, reject) => { 27 new Promise((resolve, reject) => {
28 const xhr = new XMLHttpRequest(); 28 const xhr = new XMLHttpRequest();
29 xhr.open('GET', buttonElement.href); 29 xhr.open('GET', `${buttonElement.href}&source=batch`);
30 xhr.onload = () => { 30 xhr.onload = () => {
31 if (xhr.status !== 200) { 31 if (xhr.status !== 204) {
32 alert(`An error occurred. Return code: ${xhr.status}`); 32 alert(`An error occurred. Return code: ${xhr.status}`);
33 reject(); 33 reject();
34 } else { 34 } else {