aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.coffee
diff options
context:
space:
mode:
authorShrikant Sharat2013-12-27 10:05:41 +0530
committermrmr19932014-09-17 22:54:09 +0100
commitf9cb424fad03042353e8720398b390dd8b2281d0 (patch)
tree8ea777bfea483f3840eeaaa3ebae478ad218e503 /lib/utils.coffee
parent5885bc779bed46dfcff4b1e82968151448569f9f (diff)
downloadvimium-f9cb424fad03042353e8720398b390dd8b2281d0.tar.bz2
Allow open popups from bookmarklets. Fix #968.
Use the `openUrlInCurrentTab` message to open bookmarklets so they are opened via `chrome.tabs.update` instead of an injected script element. This allows bookmarklets to open popups.
Diffstat (limited to 'lib/utils.coffee')
-rw-r--r--lib/utils.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index a93831d7..5d93ae70 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -26,7 +26,7 @@ Utils =
-> id += 1
hasChromePrefix: (url) ->
- chromePrefixes = [ "about", "view-source", "chrome-extension", "data" ]
+ chromePrefixes = ["about:", "view-source:", "chrome-extension:", "data:", "javascript:"]
for prefix in chromePrefixes
return true if url.startsWith prefix
false