From e4127fc8f779a5c784332e65b1322180c4381dd0 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 9 Mar 2016 16:29:16 +0000 Subject: Fix mainFrame command... Oversight from #2022. --- content_scripts/vimium_frontend.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 1a882192..037d01d3 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -314,9 +314,11 @@ extend window, urlsplit = urlsplit.slice(0, Math.max(3, urlsplit.length - count)) window.location.href = urlsplit.join('/') - goToRoot: () -> + goToRoot: -> window.location.href = window.location.origin + mainFrame: -> focusThisFrame highlight: true + toggleViewSource: -> chrome.runtime.sendMessage { handler: "getCurrentTabUrl" }, (url) -> if (url.substr(0, 12) == "view-source:") -- cgit v1.2.3