From 27fca0baa34df6af1ed32cb16c6e69a356364520 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Tue, 24 Oct 2017 15:36:24 +0100 Subject: Add |hard| option to reload command --- content_scripts/vimium_frontend.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3