Merge pull request #79 from filipe-nunes/patch-1
CDV_IsIPad is deprecated
This commit is contained in:
commit
2bbe49566c
@ -195,7 +195,7 @@
|
||||
- (void) presentPrintController:(UIPrintInteractionController*)controller
|
||||
fromRect:(CGRect)rect
|
||||
{
|
||||
if(CDV_IsIPad()) {
|
||||
if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
|
||||
[controller presentFromRect:rect inView:self.webView animated:YES completionHandler:
|
||||
^(UIPrintInteractionController *ctrl, BOOL ok, NSError *e) {
|
||||
CDVPluginResult* pluginResult =
|
||||
@ -275,4 +275,4 @@
|
||||
isPrintingAvailable];
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user