From 7531ef8e5fd403c8093dd8c16e353c2dd9d87276 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 19 Apr 2022 20:28:35 +1000 Subject: [PATCH] Prevent annoying error messages when notification request fails --- InvenTree/templates/js/translated/notification.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/templates/js/translated/notification.js b/InvenTree/templates/js/translated/notification.js index a289dcb8f7..b45b3d3702 100644 --- a/InvenTree/templates/js/translated/notification.js +++ b/InvenTree/templates/js/translated/notification.js @@ -171,6 +171,9 @@ function notificationCheck(force = false) { { success: function(response) { updateNotificationIndicator(response.length); + }, + error: function(xhr) { + console.warn("Could not access server: /api/notifications"); } } );