Skip to content

Commit 81aa8ba

Browse files
committed
(ios) fix regression in injectScriptFile
Fixes issue introduced in apache#584
1 parent 2cd868e commit 81aa8ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ios/CDVInAppBrowser.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ - (void)injectScriptCode:(CDVInvokedUrlCommand*)command
119119
- (void)injectScriptFile:(CDVInvokedUrlCommand*)command
120120
{
121121
#if WK_WEB_VIEW_ONLY
122-
[[CDVWKInAppBrowser getInstance] injectScriptCode:command];
122+
[[CDVWKInAppBrowser getInstance] injectScriptFile:command];
123123
#else
124124
if(self.usewkwebview){
125-
[[CDVWKInAppBrowser getInstance] injectScriptCode:command];
125+
[[CDVWKInAppBrowser getInstance] injectScriptFile:command];
126126
}else{
127-
[[CDVUIInAppBrowser getInstance] injectScriptCode:command];
127+
[[CDVUIInAppBrowser getInstance] injectScriptFile:command];
128128
}
129129
#endif
130130
}

0 commit comments

Comments
 (0)