From 385fead81a81afd935a5f9537433731f27304264 Mon Sep 17 00:00:00 2001
From: chylex <info@chylex.com>
Date: Wed, 23 Nov 2016 02:05:44 +0100
Subject: [PATCH] Fix updater calling onUpdateCheckFinished when eventID
 parameter is undefined

---
 Resources/Scripts/update.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Resources/Scripts/update.js b/Resources/Scripts/update.js
index 98004246..5c76cd79 100644
--- a/Resources/Scripts/update.js
+++ b/Resources/Scripts/update.js
@@ -146,7 +146,7 @@
         createUpdateNotificationElement(tagName, obj.browser_download_url);
       }
       
-      if (eventID !== 0){
+      if (eventID){ // ignore undefined and 0
         $TDU.onUpdateCheckFinished(eventID, hasUpdate, tagName);
       }
     });