diff --git a/plugin.xml b/plugin.xml index 630a549..5968109 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="3.0.4"> Child Browser diff --git a/src/ios/ChildBrowserCommand.m b/src/ios/ChildBrowserCommand.m index cd55816..116a4fd 100644 --- a/src/ios/ChildBrowserCommand.m +++ b/src/ios/ChildBrowserCommand.m @@ -48,7 +48,7 @@ - (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)o NSString* strOrientations = [ options objectForKey:@"supportedOrientations"]; NSArray* supportedOrientations = [strOrientations componentsSeparatedByString:@","]; */ - CDVViewController* cont = (CDVViewController*)[ super appViewController ]; + CDVViewController* cont = (CDVViewController*)[ super viewController ]; childBrowser.supportedOrientations = cont.supportedOrientations; if ([cont respondsToSelector:@selector(presentViewController)]) {