aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorTimo Sand2013-02-18 10:14:31 +0000
committerTimo Sand2013-02-18 10:14:31 +0000
commite71731aed50e8ec81b333b386f22f3e901132508 (patch)
treef24c735295b2df85efd2b51ba49143a39cbefcbd /content_scripts
parent5146b77465d259c9749d1af2da83a6950c620312 (diff)
downloadvimium-e71731aed50e8ec81b333b386f22f3e901132508.tar.bz2
Renamed to 'goToRoot', condensed function
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee11
1 files changed, 2 insertions, 9 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 34635323..1b97c30a 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -246,15 +246,8 @@ extend window,
urlsplit = urlsplit.slice(0, Math.max(3, urlsplit.length - count))
window.location.href = urlsplit.join('/')
- goRoot: (count) ->
- host = window.location.hostname
- port = window.location.port
- protocol = window.location.protocol
-
- url = protocol + "//" + host
- if port
- url += ":" + port
- window.location.href = url
+ goToRoot: () ->
+ window.location.href = window.location.origin
toggleViewSource: ->
chrome.extension.sendRequest { handler: "getCurrentTabUrl" }, (url) ->