move background
This commit is contained in:
parent
58123210ab
commit
d886d7de29
7 changed files with 82 additions and 56 deletions
src/background/actions
9
src/background/actions/tab.js
Normal file
9
src/background/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