diff options
| author | Stephen Blott | 2014-11-06 06:30:48 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-11-06 06:30:48 +0000 | 
| commit | c08d03e36e3c6a08fe9eaa493fb2a3262f77b74b (patch) | |
| tree | 191921ba45ac37585617c0a86f7cb73450cc4e0d /lib/utils.coffee | |
| parent | d1cf578ea33202c5b94c8a596c254b2ab6eee5da (diff) | |
| download | vimium-c08d03e36e3c6a08fe9eaa493fb2a3262f77b74b.tar.bz2 | |
Don't suggest domains which aren't.
Diffstat (limited to 'lib/utils.coffee')
| -rw-r--r-- | lib/utils.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/utils.coffee b/lib/utils.coffee index bbcee1a0..e2ed8d98 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -26,7 +26,7 @@ Utils =      -> id += 1    hasChromePrefix: do -> -    chromePrefixes = [ "about:", "view-source:", "chrome-extension:", "data:" ] +    chromePrefixes = [ "about:", "view-source:", "extension:", "chrome-extension:", "data:" ]      (url) ->        if 0 < url.indexOf ":"          for prefix in chromePrefixes @@ -98,7 +98,7 @@ Utils =    convertToUrl: (string) ->      string = string.trim() -    # Special-case about:[url] and view-source:[url] +    # Special-case about:[url], view-source:[url] and the like      if Utils.hasChromePrefix string        string      else if Utils.isUrl string | 
