From b9e317b3b3739fe4787c6508faead899b64c63e5 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 27 Apr 2012 23:54:29 +1000 Subject: [PATCH] Don't report empty bookmark titles as "null" in the :bmark notification message. --- common/content/bookmarks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index 20c83e77..05fa9b57 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -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);