We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a87cf6 commit fc80388Copy full SHA for fc80388
src/InAppBrowser.ios.ts
@@ -219,7 +219,10 @@ function setup() {
219
if (!this.initializeWebBrowser(resolve, reject)) return;
220
221
const url = NSURL.URLWithString(authUrl);
222
- const escapedRedirectURL = NSURL.URLWithString(redirectUrl).scheme;
+ let escapedRedirectURL: string = null;
223
+ if (redirectUrl) {
224
+ escapedRedirectURL = NSURL.URLWithString(redirectUrl).scheme;
225
+ }
226
this.authSession = (
227
Utils.ios.MajorVersion >= 12
228
? ASWebAuthenticationSession
0 commit comments