Salvatore Randazzo преди 4 години
родител
ревизия
7c2bc83abe
No account linked to committer's email address
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6
    6
      ios/RNCWebView.m

+ 6
- 6
ios/RNCWebView.m Целия файл

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