parent
655ac16f38
commit
ba2022c465
5 changed files with 26 additions and 3 deletions
@ -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 new issue