diff options
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vomnibar.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index 30615433..146a8aa8 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -200,8 +200,8 @@ extend BackgroundCompleter,    completionActions:      navigateToUrl: (url, openInNewTab) ->        # If the URL is a bookmarklet prefixed with javascript:, we shouldn't open that in a new tab. -      if (url.indexOf("javascript:") == 0) -        window.location = url +      if url.startsWith "javascript:" +        eval url["javascript:".length..]        else          chrome.extension.sendRequest(            handler: if openInNewTab then "openUrlInNewTab" else "openUrlInCurrentTab"  | 
