1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 12:37:58 +01:00

Don't report empty bookmark titles as "null" in the :bmark notification message.

This commit is contained in:
Doug Kearns
2012-04-27 23:54:29 +10:00
parent ec8ffc7405
commit b9e317b3b3

View File

@@ -473,7 +473,7 @@ var Bookmarks = Module("bookmarks", {
let updated = bookmarks.add(opts);
let action = updated ? "updated" : "added";
let extra = (opts.title == opts.url) ? "" : " (" + opts.title + ")";
let extra = (opts.title && opts.title != opts.url) ? " (" + opts.title + ")" : "";
dactyl.echomsg({ domains: [util.getHost(opts.url)], message: _("bookmark." + action, opts.url + extra) },
1, commandline.FORCE_SINGLELINE);