Index: notification.js |
=================================================================== |
--- a/notification.js |
+++ b/notification.js |
@@ -62,6 +62,7 @@ |
window.addEventListener("load", function() |
{ |
var notification = backgroundPage.activeNotification; |
+ |
if (!notification) |
return; |
@@ -69,11 +70,11 @@ |
notification.onClicked(); |
var texts = Notification.getLocalizedTexts(notification); |
- var titleElement = document.getElementById("title"); |
+ var titleElement = document.getElementById("notification-title"); |
titleElement.textContent = texts.title; |
var docLinks = getDocLinks(notification); |
- var messageElement = document.getElementById("message"); |
+ var messageElement = document.getElementById("notification-message"); |
insertMessage(messageElement, texts.message, docLinks); |
messageElement.addEventListener("click", function(event) |