[Pkg-mozext-commits] [adblock-plus] 449/464: issue #764 - fixed undefined error by case for checking 'links' property existance in notification object

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 7cb40495d6b1886decd5fad4e58199ca19ce8109
Author: Manvel Saroyan <manvel at adblockplus.org>
Date:   Thu Jul 10 11:36:33 2014 +0400

    issue #764 - fixed undefined error by case for checking 'links' property existance in notification object
---
 lib/ui.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/ui.js b/lib/ui.js
index f6c98c3..748a003 100644
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -1887,8 +1887,10 @@ let UI = exports.UI =
     let messageElement = window.document.getElementById("abp-notification-message");
     messageElement.innerHTML = "";
     let docLinks = [];
-    for (let link of notification.links)
-      docLinks.push(Utils.getDocLink(link));
+    if (notification.links)
+      for (let link of notification.links)
+        docLinks.push(Utils.getDocLink(link));
+
     insertMessage(messageElement, texts.message, docLinks);
 
     messageElement.addEventListener("click", function(event)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list