diff options
| author | Stephen Blott | 2016-03-09 16:29:16 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-09 16:29:16 +0000 |
| commit | e4127fc8f779a5c784332e65b1322180c4381dd0 (patch) | |
| tree | 9af8bff3e4471799e4d52ee66d0310e7da8c1cca /content_scripts | |
| parent | e102c5e526e6257a5ea8add54c0aa9efad2961b8 (diff) | |
| download | vimium-e4127fc8f779a5c784332e65b1322180c4381dd0.tar.bz2 | |
Fix mainFrame command...
Oversight from #2022.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
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:") |
