Mercurial > ambnews-firefox
changeset 5:8cafc4c42c29
Changed page annotations from AmbNews/something to ambnews/something to match the way other paths are done, but it appears that page annotations are case-insensitive anyways, which is cool I guess.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 21 Aug 2008 17:46:17 -0700 |
parents | f4b6208eadd5 |
children | ec86d1e59d44 |
files | ambnews/content/ambnews.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ambnews/content/ambnews.js Thu Aug 21 17:38:42 2008 -0700 +++ b/ambnews/content/ambnews.js Thu Aug 21 17:46:17 2008 -0700 @@ -38,8 +38,8 @@ var feedUrl = AmbNews.url(url); var annSvc = AmbNews.__getAnnSvc(); - if (annSvc.pageHasAnnotation(feedUrl, "AmbNews/feed-xml")) { - var xml = annSvc.getPageAnnotation(feedUrl, "AmbNews/feed-xml"); + if (annSvc.pageHasAnnotation(feedUrl, "ambnews/feed-xml")) { + var xml = annSvc.getPageAnnotation(feedUrl, "ambnews/feed-xml"); // TODO: Perhaps re-enable this, but only let it live for a // few minutes? //callback(xml); @@ -54,7 +54,7 @@ if (request.status == 200) { if (request.responseText) { annSvc.setPageAnnotation(feedUrl, - "AmbNews/feed-xml", + "ambnews/feed-xml", request.responseText, 0, annSvc.EXPIRE_DAYS); @@ -89,7 +89,7 @@ var annSvc = AmbNews.__getAnnSvc(); var page = AmbNews.url(aEvent.target.baseURI); var feed = AmbNews.url(aEvent.target.href); - annSvc.setPageAnnotation(page, "AmbNews/feed", + annSvc.setPageAnnotation(page, "ambnews/feed", feed.spec, 0, annSvc.EXPIRE_WEEKS); } },