From 565602538c28b7fd2e172b4ea6fdc0c907202842 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 17 Dec 2021 21:08:20 +0000 Subject: main.js simplify notify_id checks --- view/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index f4f641e33..f7709f9d1 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -178,7 +178,7 @@ $(document).ready(function() { path = 'hq'; } - if(notify_id != null) { + if(notify_id) { $.ajax({ type: 'post', url: 'notify', @@ -999,7 +999,7 @@ function liveUpdate(notify_id) { // else data was valid - reset the recursion counter liveRecurse = 0; - if(typeof notify_id !== 'undefined' && notify_id !== 'undefined') { + if(notify_id) { $.post( "notify", { -- cgit v1.2.3