From 571041ff5585f64e0945297a232a74317de1812f Mon Sep 17 00:00:00 2001 From: groot9325 Date: Mon, 9 Oct 2023 11:46:14 +0800 Subject: [PATCH] fix: add async for createPeerConnection when use await call it --- src/content/peerconnection/channel/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/peerconnection/channel/js/main.js b/src/content/peerconnection/channel/js/main.js index 6c797e5ac2..b597d4baf8 100644 --- a/src/content/peerconnection/channel/js/main.js +++ b/src/content/peerconnection/channel/js/main.js @@ -80,7 +80,7 @@ async function hangup() { hangupButton.disabled = true; }; -function createPeerConnection() { +async function createPeerConnection() { pc = new RTCPeerConnection(); pc.onicecandidate = e => { const message = {