Fix: [Extension] Use extension API make sure page open successfully

This commit is contained in:
MengYX
2021-02-08 04:50:00 +08:00
parent 9607580e8b
commit b17bb37c38
2 changed files with 16 additions and 1 deletions

View File

@ -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))