fix(ext): fix multi-thread logic; extensive logging and error handling
This commit is contained in:
@@ -74,6 +74,11 @@ export class MultiPageAgent extends PageAgentCore {
|
||||
})
|
||||
},
|
||||
|
||||
onBeforeStep: async (agent) => {
|
||||
// make sure the current tab is loaded before the step starts
|
||||
await tabsController.waitUntilTabLoaded(tabsController.currentTabId!)
|
||||
},
|
||||
|
||||
onDispose: () => {
|
||||
if (heartBeatInterval) {
|
||||
window.clearInterval(heartBeatInterval)
|
||||
|
||||
Reference in New Issue
Block a user