fix(ext): init without initialTab throws error

This commit is contained in:
Simon
2026-03-18 19:36:02 +08:00
parent 61d598142d
commit 628c249d45
3 changed files with 16 additions and 13 deletions
@@ -75,6 +75,7 @@ export class MultiPageAgent extends PageAgentCore {
},
onBeforeStep: async (agent) => {
if (!tabsController.currentTabId) return
// make sure the current tab is loaded before the step starts
await tabsController.waitUntilTabLoaded(tabsController.currentTabId!)
},