From 9d4cca244d4ea3ca80e883f024fe4e23d4fd08d8 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 29 May 2020 09:56:38 +0200 Subject: [PATCH] Fix IE default redirect url Applying changes from https://github.com/auth0/lock/pull/1373/files --- src/helper/object.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helper/object.js b/src/helper/object.js index fddf0335..542600aa 100644 --- a/src/helper/object.js +++ b/src/helper/object.js @@ -145,6 +145,9 @@ function getOriginFromUrl(url) { return undefined; } var parsed = getLocationFromUrl(url); + if (!parsed) { + return null; + } var origin = parsed.protocol + '//' + parsed.hostname; if (parsed.port) { origin += ':' + parsed.port;