mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 1829606 - [devtools] Fix "listener.onTracingToggled is not a function" exceptino when enabling the tracer. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D176347
This commit is contained in:
parent
d8c705b294
commit
dffb4077bf
@ -327,7 +327,10 @@ function stopTracing() {
|
||||
function addTracingListener(listener) {
|
||||
listeners.add(listener);
|
||||
|
||||
if (activeTracer?.isTracing()) {
|
||||
if (
|
||||
activeTracer?.isTracing() &&
|
||||
typeof listener.onTracingToggled == "function"
|
||||
) {
|
||||
listener.onTracingToggled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user