This repository was archived by the owner on Jul 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
extension/experiments/inspectedNode Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments