From c9c9df49688c5ec7502a906a30efbc9a11693a0f Mon Sep 17 00:00:00 2001 From: YoloMao Date: Tue, 15 Oct 2024 16:05:38 +0800 Subject: [PATCH] fix(hybrid): web circle testing failed --- Modules/Hybrid/GrowingWKWebViewJavascriptBridge_JS.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/Hybrid/GrowingWKWebViewJavascriptBridge_JS.m b/Modules/Hybrid/GrowingWKWebViewJavascriptBridge_JS.m index 5ec98125..51536d7f 100644 --- a/Modules/Hybrid/GrowingWKWebViewJavascriptBridge_JS.m +++ b/Modules/Hybrid/GrowingWKWebViewJavascriptBridge_JS.m @@ -107,8 +107,7 @@ + (NSString *)createJavascriptBridgeJsWithNativeConfiguration: (e[c].namespace = s); var d = n.createElement('script'); var i = n.getElementsByTagName('script')[0]; - (d.async = !0), (d.src = t); - i ? i.parentNode.insertBefore(d, i) : n.head.appendChild(d); + (d.async = !0), (d.src = t), i.parentNode.insertBefore(d, i); })(window, document, 'https://assets.giocdn.com/sdk/webjs/gdp-full.js', 'gdp'); window._gr_ignore_local_rule = true;