mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 03:52:51 +08:00
Remove unused variable & improve formatting
This commit is contained in:
parent
d2fb6d5184
commit
68392bdaf2
@ -84,8 +84,6 @@ NSString* callbackId = nil;
|
||||
docController.delegate = self;
|
||||
docController.UTI = uti;
|
||||
|
||||
CDVPluginResult* pluginResult = nil;
|
||||
|
||||
//Opens the file preview
|
||||
CGRect rect;
|
||||
|
||||
@ -133,6 +131,7 @@ NSString* callbackId = nil;
|
||||
|
||||
- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
|
||||
UIViewController *presentingViewController = self.viewController;
|
||||
|
||||
if (presentingViewController.view.window != [UIApplication sharedApplication].keyWindow) {
|
||||
presentingViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user