1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:52:27 +01:00

fixed :open keyword

This commit is contained in:
Martin Stubenschrott
2008-12-08 18:51:51 +01:00
parent 29de1f0e8a
commit 564ed266cf

View File

@@ -485,7 +485,7 @@ const util = { //{{{
// or starts with a known protocol try opening it with a search engine // or starts with a known protocol try opening it with a search engine
// or keyword bookmark // or keyword bookmark
let proto = url.match(/^(\w+):/); let proto = url.match(/^(\w+):/);
if (/\s/.test(url) || (proto && !Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]])) if (/\s/.test(url) || !proto || !Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]])
{ {
// TODO: it would be clearer if the appropriate call to // TODO: it would be clearer if the appropriate call to
// getSearchURL was made based on whether or not the first word was // getSearchURL was made based on whether or not the first word was