mirror of
https://gitee.com/shuto-github/phonegap-mobile-accessibility.git
synced 2026-05-08 00:00:02 +08:00
Fix Issue #26: Fails to compile with cordova-ios 4.0.0
Per @shazron, use `self.commandDelegate evalJs`.
This commit is contained in:
@@ -180,7 +180,7 @@
|
||||
mFontScale = zoom/100;
|
||||
if (iOS7Delta) {
|
||||
NSString *jsString = [[NSString alloc] initWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%f%%'", zoom];
|
||||
[[self webView] stringByEvaluatingJavaScriptFromString:jsString];
|
||||
[self.commandDelegate evalJs:jsString];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user