Salvatore Randazzo hace 4 años
padre
commit
7c2bc83abe
No account linked to committer's email address
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6
    6
      ios/RNCWebView.m

+ 6
- 6
ios/RNCWebView.m Ver fichero

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