Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit 6b12e5d

Browse files
authored
Merge pull request #24 from firefox-devtools/target-was-renamed-to-currenttarget
target field in inspector.js was renamed to currentTarget in bug 1578426
2 parents 9499fd5 + 5550d9a commit 6b12e5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • extension/experiments/inspectedNode

extension/experiments/inspectedNode/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ this.inspectedNode = class extends ExtensionAPI {
1818
client.onNodeChange = onNodeChange;
1919

2020
const { inspector } = client;
21-
const changesFront = await inspector.target.getFront("changes");
21+
const changesFront = await inspector.currentTarget.getFront("changes");
2222
// We call `allChanges()` to activate emiting all events from the actor now.
2323
// When the Bug 1563757 fixes, we can remove.
2424
// https://bugzilla.mozilla.org/show_bug.cgi?id=1563757
@@ -35,7 +35,7 @@ this.inspectedNode = class extends ExtensionAPI {
3535
// invalidated before dependencies have a chance to unregister. This guard is here
3636
// to prevent throwing errors as a result of trying to work on an unavailable front.
3737
try {
38-
const changesFront = await inspector.target.getFront("changes");
38+
const changesFront = await inspector.currentTarget.getFront("changes");
3939
changesFront.off("clear-changes", onNodeChange);
4040
changesFront.off("remove-change", onNodeChange);
4141
changesFront.off("add-change", onNodeChange);

0 commit comments

Comments
 (0)