diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 20:04:34 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 20:04:34 +0900 |
commit | bf07e89126989cc555a10848ddf18589fffe2e49 (patch) | |
tree | 829eff07a3dff006ca5c3a98cbe4dd3af3697282 /src/actions | |
parent | 78233b25b76df55d519f1d9082267aba876b4835 (diff) | |
parent | 1880df95f60f1410a83b6af65ec9b8a74c2f59f2 (diff) |
Merge branch 'improve-follow-command'
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/tab.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/actions/tab.js b/src/actions/tab.js new file mode 100644 index 0000000..e512b6f --- /dev/null +++ b/src/actions/tab.js @@ -0,0 +1,9 @@ +const openNewTab = (url) => { + return browser.tabs.create({ url: url }); +}; + +const openToTab = (url, tab) => { + return browser.tabs.update(tab.id, { url: url }); +}; + +export { openToTab, openNewTab }; |