We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GM_xmlhttpRequest
1 parent 68beedb commit 6a8c166Copy full SHA for 6a8c166
1 file changed
src/app/service/service_worker/gm_api/gm_api.ts
@@ -857,7 +857,10 @@ export default class GMApi {
857
if (!sender.isType(GetSenderType.CONNECT)) {
858
throw new Error("GM_xmlhttpRequest ERROR: sender is not MessageConnect");
859
}
860
- const msgConn = sender.getConnect()!;
+ const msgConn = sender.getConnect();
861
+ if (!msgConn) {
862
+ throw new Error("GM_xmlhttpRequest ERROR: msgConn is undefined");
863
+ }
864
865
let isConnDisconnected = false;
866
msgConn.onDisconnect(() => {
0 commit comments