mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 17:25:46 +01:00
Fix :bmark!.
--HG-- extra : rebase_source : 0a2fca19627555ada35aa580e58bc5e0e608a756
This commit is contained in:
@@ -34,17 +34,16 @@ const Bookmarks = Module("bookmarks", {
|
||||
add: function add(starOnly, title, url, keyword, tags, force) {
|
||||
try {
|
||||
let uri = util.createURI(url);
|
||||
if (!force && bookmarks.isBookmarked(uri.spec)) {
|
||||
if (force && bookmarks.isBookmarked(uri.spec))
|
||||
// WTF? This seems wrong... --Kris
|
||||
for (let bmark in bookmarkcache) {
|
||||
for (let bmark in bookmarkcache)
|
||||
if (bmark[0] == uri.spec) {
|
||||
var id = bmark[5];
|
||||
if (title)
|
||||
services.get("bookmarks").setItemTitle(id, title);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (id == undefined)
|
||||
id = services.get("bookmarks").insertBookmark(
|
||||
services.get("bookmarks")[starOnly ? "unfiledBookmarksFolder" : "bookmarksMenuFolder"],
|
||||
|
||||
Reference in New Issue
Block a user