Skip to content

Commit 9b14e87

Browse files
committed
fix: disposer need to be called on failed tab
1 parent b840b2c commit 9b14e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/chrome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Chrome {
217217
.timeout(this.timeout);
218218
} finally {
219219
// schedules in the "background", no await is needed
220-
Chrome.disposer(tab.target, tab.client);
220+
if (tab) Chrome.disposer(tab.target, tab.client);
221221
}
222222
}
223223
}

0 commit comments

Comments
 (0)