mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 15:48:00 +01:00
Don't report empty bookmark titles as "null" in the :bmark notification message.
This commit is contained in:
@@ -473,7 +473,7 @@ var Bookmarks = Module("bookmarks", {
|
|||||||
let updated = bookmarks.add(opts);
|
let updated = bookmarks.add(opts);
|
||||||
let action = updated ? "updated" : "added";
|
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) },
|
dactyl.echomsg({ domains: [util.getHost(opts.url)], message: _("bookmark." + action, opts.url + extra) },
|
||||||
1, commandline.FORCE_SINGLELINE);
|
1, commandline.FORCE_SINGLELINE);
|
||||||
|
|||||||
Reference in New Issue
Block a user