mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-07-07 06:52:09 +08: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