The following is not working all the time, just sometimes:
let win = await browser.windows.create()
await browser.tabs.move(tab.id, {index: 0, windowId: win.id})
I'm not sure if it's a problem with how I'm using the api.
I checked some github repo and found they do this:
browser.tabs.create({active: true, url: tab.url})
That actually works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.