diff options
| author | Stephen Blott | 2014-12-14 14:17:54 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-12-14 14:20:54 +0000 | 
| commit | 9b8817593af71ddc106c60d44bc967a4bcc553e9 (patch) | |
| tree | e8030195a85189c23dedc3aacb06e3bdc8351460 /lib/utils.coffee | |
| parent | 3f3444d1fe72c74439bd9bec3c27ab441ae560a0 (diff) | |
| parent | d42913f75443df565d33ef5c565cd80c31714a60 (diff) | |
| download | vimium-9b8817593af71ddc106c60d44bc967a4bcc553e9.tar.bz2 | |
Merge branch 'vomnibarToPage' of https://github.com/smblott-github/vimium into smblott-github-vomnibarToPage
Conflicts:
	background_scripts/main.coffee
	content_scripts/vimium.css
	content_scripts/vomnibar.coffee
	lib/utils.coffee
Diffstat (limited to 'lib/utils.coffee')
| -rw-r--r-- | lib/utils.coffee | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/lib/utils.coffee b/lib/utils.coffee index b7f8731a..57d8a488 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -26,11 +26,10 @@ Utils =      -> id += 1    hasChromePrefix: do -> -    chromePrefixes = [ "about:", "view-source:", "extension:", "chrome-extension:", "data:" ] +    chromePrefixes = [ "about:", "view-source:", "extension:", "chrome-extension:", "data:", "javascript:" ]      (url) -> -      if 0 < url.indexOf ":" -        for prefix in chromePrefixes -          return true if url.startsWith prefix +      for prefix in chromePrefixes +        return true if url.startsWith prefix        false    hasFullUrlPrefix: do -> | 
