From 1d1a9c55dc0987b0b2ebd4eb73ac7e7be8651fde Mon Sep 17 00:00:00 2001 From: ilya Date: Sat, 7 Jul 2012 09:56:04 -0700 Subject: URL decode bookmarklets --- content_scripts/vomnibar.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index e60d6e52..433d0d01 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -203,7 +203,7 @@ extend BackgroundCompleter, navigateToUrl: (url, openInNewTab) -> # If the URL is a bookmarklet prefixed with javascript:, we shouldn't open that in a new tab. if url.startsWith "javascript:" - eval url["javascript:".length..] + eval decodeURIComponent(url["javascript:".length..]) else chrome.extension.sendRequest( handler: if openInNewTab then "openUrlInNewTab" else "openUrlInCurrentTab" -- cgit v1.2.3