【发布时间】:2020-07-17 13:19:40
【问题描述】:
在 Firefox 上绝对可以,但相同的代码在 Thunderbird 上不起作用。
这是我正在尝试做的一个示例:
在我的 background.js 中:
console.log("a");
let ws = new WebSocket("wss://echo.websocket.org");
console.log("b");
但我只能在调试控制台中得到这个结果:
Webconsole context has changed
a background.js:1:9
Webconsole context has changed
: background.js:3
<anonyme> moz-extension://e908747f-c410-4427-8868-1336f813f1cd/background.js:3
我正在 Thunderbird v68.6.0 上进行测试。
【问题讨论】:
标签: websocket thunderbird thunderbird-addon