aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/bg_utils.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/bg_utils.coffee b/background_scripts/bg_utils.coffee
index 698f5352..3fee6685 100644
--- a/background_scripts/bg_utils.coffee
+++ b/background_scripts/bg_utils.coffee
@@ -102,7 +102,8 @@ SearchEngines =
keyword = tokens[0].split(":")[0]
searchUrl = tokens[1]
description = tokens[2..].join(" ") || "search (#{keyword})"
- engines[keyword] = {keyword, searchUrl, description} if Utils.hasFullUrlPrefix searchUrl
+ if Utils.hasFullUrlPrefix(searchUrl) or Utils.hasJavascriptPrefix searchUrl
+ engines[keyword] = {keyword, searchUrl, description}
callback engines