Salvatore Randazzo vor 4 Jahren
Ursprung
Commit
7c2bc83abe
Es ist kein Benutzerkonto mit dieser Commiter-Email verbunden
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6
    6
      ios/RNCWebView.m

+ 6
- 6
ios/RNCWebView.m Datei anzeigen

@@ -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