aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/services/push/push.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/services/push/push.js b/src/services/push/push.js
index 9142895f..bf0c9680 100644
--- a/src/services/push/push.js
+++ b/src/services/push/push.js
@@ -47,10 +47,7 @@ function deleteSubscriptionFromBackEnd (token) {
}
}).then((response) => {
if (!response.ok) throw new Error('Bad status code from server.')
- return response.json()
- }).then((responseData) => {
- if (!responseData.id) throw new Error('Bad response from server.')
- return responseData
+ return response
})
}