Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/client/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ export async function onConnect(connection: any, actions: Object): Object {
wasmBinarySource: supportsWasm
});

threadClient._parent
.listWorkers()
.then(workers => actions.setWorkers(workers));
// NOTE: The Worker and Browser Content toolboxes do not have a parent
// with a listWorkers function
if (threadClient._parent && threadClient._parent.listWorkers) {
threadClient._parent
.listWorkers()
.then(workers => actions.setWorkers(workers));
}

// In Firefox, we need to initially request all of the sources. This
// usually fires off individual `newSource` notifications as the
Expand Down