|
@@ -243,12 +243,12 @@ static NSDictionary* customCertificatesForHost;
|
243
|
243
|
|
244
|
244
|
WKUserScript *script = [[WKUserScript alloc] initWithSource:source injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:YES];
|
245
|
245
|
[wkWebViewConfig.userContentController addUserScript:script];
|
246
|
|
-
|
247
|
|
- if (_injectedJavaScriptBeforeContentLoaded) {
|
248
|
|
- // If user has provided an injectedJavascript prop, execute it at the start of the document
|
249
|
|
- WKUserScript *injectedScript = [[WKUserScript alloc] initWithSource:_injectedJavaScriptBeforeContentLoaded injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:YES];
|
250
|
|
- [wkWebViewConfig.userContentController addUserScript:injectedScript];
|
251
|
|
- }
|
|
246
|
+ }
|
|
247
|
+
|
|
248
|
+ if (_injectedJavaScriptBeforeContentLoaded) {
|
|
249
|
+ // If user has provided an injectedJavascript prop, execute it at the start of the document
|
|
250
|
+ WKUserScript *injectedScript = [[WKUserScript alloc] initWithSource:_injectedJavaScriptBeforeContentLoaded injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:YES];
|
|
251
|
+ [wkWebViewConfig.userContentController addUserScript:injectedScript];
|
252
|
252
|
}
|
253
|
253
|
|
254
|
254
|
#if !TARGET_OS_OSX
|