summaryrefslogtreecommitdiffstats
path: root/devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js')
-rw-r--r--devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js b/devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js
index 3bbcf54aaf..81ecb72fb2 100644
--- a/devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js
+++ b/devtools/server/actors/targets/session-data-processors/xhr-breakpoints.js
@@ -22,10 +22,7 @@ module.exports = {
// The thread actor has to be initialized in order to correctly
// retrieve the stack trace when hitting an XHR
- if (
- threadActor.state == THREAD_STATES.DETACHED &&
- !targetActor.targetType.endsWith("worker")
- ) {
+ if (threadActor.state == THREAD_STATES.DETACHED) {
await threadActor.attach();
}