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 (