From 44d08d77aa2ff9017865e745e4b4096e1f09824f Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 30 Nov 2021 22:35:37 +0100 Subject: [PATCH] maybe the watcher should be running from the start --- InvenTree/InvenTree/static/script/inventree/inventree.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/InvenTree/static/script/inventree/inventree.js b/InvenTree/InvenTree/static/script/inventree/inventree.js index 0e7c09c32d..d6d639f03e 100644 --- a/InvenTree/InvenTree/static/script/inventree/inventree.js +++ b/InvenTree/InvenTree/static/script/inventree/inventree.js @@ -218,6 +218,9 @@ function inventreeDocReady() { // Display any cached alert messages showCachedAlerts(); + // start watcher + startNotificationWatcher(); + // always refresh when the focus returns $(document).focus(function(){ startNotificationWatcher();