mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 00:04:11 +01:00
Change a test in dactyl.parseURLs. Closes issue #398.
--HG-- extra : rebase_source : a901b7fb0d629e6451bc894d0062c8f9949968ee
This commit is contained in:
@@ -1285,12 +1285,12 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
return url.replace(/\s+/g, "");
|
||||
|
||||
// Check for a matching search keyword.
|
||||
let searchURL = loaded.bookmarks && bookmarks.getSearchURL(url, false);
|
||||
let searchURL = this.has("bookmarks") && bookmarks.getSearchURL(url, false);
|
||||
if (searchURL)
|
||||
return searchURL;
|
||||
|
||||
// If it looks like URL-ish (foo.com/bar), let Gecko figure it out.
|
||||
if (this.urlish.test(url) || !loaded.bookmarks)
|
||||
if (this.urlish.test(url) || !this.has("bookmarks"))
|
||||
return util.createURI(url).spec;
|
||||
|
||||
// Pass it off to the default search engine or, failing
|
||||
|
||||
Reference in New Issue
Block a user