From 21e7cc0aa8107fb18e8e5eb8d70bc4916d19c4c6 Mon Sep 17 00:00:00 2001 From: maosiping Date: Wed, 27 Jul 2022 11:34:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E7=AE=A1=E7=90=86APImock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: maosiping --- runtime/main/extend/systemplugin/napi/ohos_net_webSocket.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_net_webSocket.js b/runtime/main/extend/systemplugin/napi/ohos_net_webSocket.js index 7a4515b7..eb88c7dc 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_net_webSocket.js +++ b/runtime/main/extend/systemplugin/napi/ohos_net_webSocket.js @@ -16,7 +16,6 @@ import { paramMock } from "../utils" export function mockWebSocket() { - global.systemplugin.net = {} const WebSocketRequestOptions = { header: "[PC Preview] unknow header" } @@ -108,4 +107,4 @@ export function mockWebSocket() { } } return webSocket -} \ No newline at end of file +}