allow to open link in new tab
This commit is contained in:
parent
655ac16f38
commit
ba2022c465
5 changed files with 26 additions and 3 deletions
9
src/actions/tab.js
Normal file
9
src/actions/tab.js
Normal file
|
@ -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 };
|
Reference in a new issue