From ac03aefeaed9b1f511b15c58ff0805076f388802 Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Sat, 5 Aug 2023 19:59:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/enhanceExperience/banP2P.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/enhanceExperience/banP2P.ts b/src/modules/enhanceExperience/banP2P.ts index 8f3ccdfa..228404db 100644 --- a/src/modules/enhanceExperience/banP2P.ts +++ b/src/modules/enhanceExperience/banP2P.ts @@ -7,7 +7,11 @@ class BanP2P extends BaseModule { config = this.moduleStore.moduleConfig.EnhanceExperience.banp2p private async banP2P() { - const RTClist = ['RTCPeerConnection', 'mozRTCPeerConnection', 'webkitRTCPeerConnection'] + const RTClist: string[] = [ + 'RTCPeerConnection', + 'mozRTCPeerConnection', + 'webkitRTCPeerConnection' + ] for (const i of RTClist) { // 判断属性是否存在并且是否可配置 if (