diff ambnews/content/ambnews.js @ 2:88b12596346d

Added an about:news handler and made the default page for new tabs about:news.
author Atul Varma <varmaa@toolness.com>
date Thu, 21 Aug 2008 17:00:35 -0700
parents 44bcb4975ead
children 2f424bef178f
line wrap: on
line diff
--- a/ambnews/content/ambnews.js	Thu Aug 21 15:39:57 2008 -0700
+++ b/ambnews/content/ambnews.js	Thu Aug 21 17:00:35 2008 -0700
@@ -92,5 +92,11 @@
       annSvc.setPageAnnotation(page, "AmbNews/feed",
                                feed.spec, 0, annSvc.EXPIRE_WEEKS);
     }
+  },
+  onLoad: function AmbNews_onLoad(aEvent) {
+    if (aEvent.target.baseURI == "about:blank") {
+      var doc = aEvent.target;
+      doc.defaultView.location = "about:news";
+    }
   }
 };