mirror of
https://git.um-react.app/um/web.git
synced 2025-12-15 19:53:02 +00:00
Fix: [Extension] Use extension API make sure page open successfully
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
const bs = chrome || browser
|
||||
window.open(bs.runtime.getURL('./index.html'))
|
||||
bs.tabs.create({
|
||||
url: bs.runtime.getURL('./index.html')
|
||||
}, tab => console.log(tab))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user