Remove unused variable & improve formatting

This commit is contained in:
Aleksi Lahikainen 2020-09-08 15:58:26 +03:00
parent d2fb6d5184
commit 68392bdaf2

View File

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