diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2022-05-05 10:49:08 +0800 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-21 16:37:38 +0000 |
commit | 00c51f75fa4845f348708a796d552ca281f8210a (patch) | |
tree | 9e61f30e55612b4e9602f9b7565e51be285c101e /devtools | |
parent | addadda237225eda48487a489114c1fa36c687ff (diff) | |
download | uxp-00c51f75fa4845f348708a796d552ca281f8210a.tar.gz |
No issue - Add null check to send packet function in the developer tools server
This resolves some of the useless log spam thrown in the browser console by the developer tools.
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/server/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devtools/server/main.js b/devtools/server/main.js index ac76adb831..4af1381896 100644 --- a/devtools/server/main.js +++ b/devtools/server/main.js @@ -1462,7 +1462,9 @@ DebuggerServerConnection.prototype = { }, send(packet) { - this.transport.send(packet); + if (this.transport) { + this.transport.send(packet); + } }, /** |