From cb36fc666cb2615f911bc855bc91249d167f0dba Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 26 Aug 2017 18:43:15 +0900 Subject: support r/R commands --- src/background/tabs.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/background/tabs.js') diff --git a/src/background/tabs.js b/src/background/tabs.js index 899284d..56f86eb 100644 --- a/src/background/tabs.js +++ b/src/background/tabs.js @@ -40,4 +40,11 @@ const selectNextTab = (current, count) => { }); }; -export { closeTab, reopenTab, selectNextTab, selectPrevTab }; +const reload = (current, cache) => { + browser.tabs.reload( + current.id, + { bypassCache: cache } + ); +}; + +export { closeTab, reopenTab, selectNextTab, selectPrevTab, reload }; -- cgit v1.2.3