summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-05-05 10:49:08 +0800
committerMoonchild <moonchild@palemoon.org>2022-05-21 16:37:38 +0000
commit00c51f75fa4845f348708a796d552ca281f8210a (patch)
tree9e61f30e55612b4e9602f9b7565e51be285c101e
parentaddadda237225eda48487a489114c1fa36c687ff (diff)
downloaduxp-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.
-rw-r--r--devtools/server/main.js4
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);
+ }
},
/**