Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 876bfb4

Browse files
juliandescottesjasonLaster
authored andcommitted
Fix blank debugger when debugging service workers (#5929)
1 parent a3c4f23 commit 876bfb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/firefox/commands.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ async function fetchSources() {
332332
*/
333333
async function checkServerSupportsListWorkers() {
334334
const root = await tabTarget.root;
335+
// root is not available on all debug targets.
336+
if (!root) {
337+
return false;
338+
}
339+
335340
const deviceFront = await getDeviceFront(debuggerClient, root);
336341
const description = await deviceFront.getDescription();
337342

0 commit comments

Comments
 (0)