From 5211a4769b49fdf27fc442944f60a3b6a9dbe566 Mon Sep 17 00:00:00 2001 From: Onelong Date: Sun, 7 Jun 2020 12:19:26 +0800 Subject: [PATCH] Update DWKWebView.m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix:修复内嵌iframe页面sdk不生效的bug --- dsbridge/DWKWebView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsbridge/DWKWebView.m b/dsbridge/DWKWebView.m index 1bfbbff..f779270 100644 --- a/dsbridge/DWKWebView.m +++ b/dsbridge/DWKWebView.m @@ -45,7 +45,7 @@ -(instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration WKUserScript *script = [[WKUserScript alloc] initWithSource:@"window._dswk=true;" injectionTime:WKUserScriptInjectionTimeAtDocumentStart - forMainFrameOnly:YES]; + forMainFrameOnly:NO]; [configuration.userContentController addUserScript:script]; self = [super initWithFrame:frame configuration: configuration]; if (self) {