Salvatore Randazzo 4 yıl önce
ebeveyn
işleme
7c2bc83abe
No account linked to committer's email address
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6
    6
      ios/RNCWebView.m

+ 6
- 6
ios/RNCWebView.m Dosyayı Görüntüle

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