diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/common/js/shaare-batch.js | 4 |
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) => { | |||
26 | const sendBookmarkDelete = (buttonElement, formElement) => ( | 26 | const 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 { |