Index: lib/ui.js |
=================================================================== |
--- a/lib/ui.js |
+++ b/lib/ui.js |
@@ -1887,8 +1887,10 @@ |
let messageElement = window.document.getElementById("abp-notification-message"); |
messageElement.innerHTML = ""; |
let docLinks = []; |
- for (let link of notification.links) |
- docLinks.push(Utils.getDocLink(link)); |
+ if ("links" in notification) |
Wladimir Palant
2014/07/09 18:51:46
How about |if (notification.links)| just in case t
saroyanm
2014/07/09 18:57:25
Good point.
|
+ for (let link of notification.links) |
+ docLinks.push(Utils.getDocLink(link)); |
+ |
insertMessage(messageElement, texts.message, docLinks); |
messageElement.addEventListener("click", function(event) |