aboutsummaryrefslogtreecommitdiff
path: root/src/background/tabs.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-26 18:43:15 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-26 18:43:15 +0900
commitcb36fc666cb2615f911bc855bc91249d167f0dba (patch)
treeca4db6739528100a6dd965700fc7ffc707f22a74 /src/background/tabs.js
parenta5f1e06efcc64c181f2e06337e47e4705aebabb8 (diff)
support r/R commands
Diffstat (limited to 'src/background/tabs.js')
-rw-r--r--src/background/tabs.js9
1 files changed, 8 insertions, 1 deletions
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 };