nativescript-oauth2
Advanced tools
Comparing version 2.4.3 to 2.4.4
{ | ||
"name": "nativescript-oauth2", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"description": "OAuth 2 generic authorization plugin for NativeScript that doesn't install third party native libraries", | ||
@@ -5,0 +5,0 @@ "main": "oauth", |
@@ -24,3 +24,2 @@ "use strict"; | ||
var fullUrl = this.loginController.preLogoutSetup(frame, urlScheme, completion); | ||
console.dir(fullUrl); | ||
this.openUrlWithParametersCompletion(fullUrl, frame); | ||
@@ -31,3 +30,12 @@ }; | ||
this.safariViewController.delegate = this; | ||
frame.ios.controller.presentViewControllerAnimatedCompletion(this.safariViewController, true, null); | ||
if (frame.parent) { | ||
var topmostParent = frame.parent; | ||
while (topmostParent.parent) { | ||
topmostParent = topmostParent.parent; | ||
} | ||
topmostParent.viewController.presentViewControllerAnimatedCompletion(this.safariViewController, true, null); | ||
} | ||
else { | ||
frame.ios.controller.presentViewControllerAnimatedCompletion(this.safariViewController, true, null); | ||
} | ||
}; | ||
@@ -34,0 +42,0 @@ TnsOAuthLoginNativeViewController.prototype.resumeWithUrl = function (url) { |
83554
1390