aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932017-10-24 15:36:24 +0100
committermrmr19932017-10-24 15:36:24 +0100
commit27fca0baa34df6af1ed32cb16c6e69a356364520 (patch)
tree1246c9010db53f0dd3733bd9de97e03e95522ddf
parent895a5e85fe40d2d1ba718b2ef51436d82e913ebe (diff)
downloadvimium-27fca0baa34df6af1ed32cb16c6e69a356364520.tar.bz2
Add |hard| option to reload command
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 4f2e805d..96ce81a3 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -346,7 +346,9 @@ extend window,
scrollRight: (count) -> Scroller.scrollBy "x", Settings.get("scrollStepSize") * count
extend window,
- reload: -> window.location.reload()
+ reload: (count, options) ->
+ hard = options?.hard
+ window.location.reload(hard)
goBack: (count) -> history.go(-count)
goForward: (count) -> history.go(count)