mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-30 18:03:36 +02:00
Minor help fixes. Almost time to merge. Need to get rid of these silly security warnings flooding the console.
--HG-- branch : xslt
This commit is contained in:
@@ -77,14 +77,23 @@ function Bookmarks() //{{{
|
||||
|
||||
function loadBookmark(node)
|
||||
{
|
||||
let uri = util.newURI(node.uri);
|
||||
let keyword = bookmarksService.getKeywordForBookmark(node.itemId);
|
||||
let tags = taggingService.getTagsForURI(uri, {}) || [];
|
||||
let bmark = new Bookmark(node.uri, node.title, node.icon && node.icon.spec, keyword, tags, node.itemId);
|
||||
try
|
||||
{
|
||||
let uri = util.newURI(node.uri);
|
||||
let keyword = bookmarksService.getKeywordForBookmark(node.itemId);
|
||||
let tags = taggingService.getTagsForURI(uri, {}) || [];
|
||||
let bmark = new Bookmark(node.uri, node.title, node.icon && node.icon.spec, keyword, tags, node.itemId);
|
||||
|
||||
bookmarks.push(bmark);
|
||||
bookmarks.push(bmark);
|
||||
|
||||
return bmark;
|
||||
return bmark;
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
liberator.dump("Failed to create bookmark for URI: " + node.uri);
|
||||
liberator.reportError(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function readBookmark(id)
|
||||
|
||||
Reference in New Issue
Block a user