Fixed bug 494549
authorAtul Varma <varmaa@toolness.com>
Wed, 19 Aug 2009 13:30:33 -0700
changeset 658 a6b81b27db2c
parent 657 596c6634858d
child 659 2798a7d150dc
push id413
push useravarma@mozilla.com
push date2009-08-19 20:30 +0000
bugs494549
Fixed bug 494549
extension/content/js/notifications.js
--- a/extension/content/js/notifications.js
+++ b/extension/content/js/notifications.js
@@ -1,23 +1,23 @@
 function Notifications() {
   MemoryTracking.track(this);
 
   this.show = function(message) {
     var body = message;
-    var title = "Jetpack Notification";
-    var icon = "chrome://jetpack/content/gfx/jetpack_32x32.png";
+    var title = Application.name + " Notification";
+    var icon = null;
 
     if (typeof(message) == "object") {
       body = message.body;
 
-      if (message.title)
+      if ("title" in message)
         title = message.title;
 
-      if (message.icon)
+      if ("icon" in message)
         icon = message.icon;
     }
 
     try {
       var classObj = Cc["@mozilla.org/alerts-service;1"];
       var alertService = classObj.getService(Ci.nsIAlertsService);
 
       alertService.showAlertNotification(icon, title, body);