Skip to content

Commit 4640be8

Browse files
author
Sachin Maheshwari
committed
adding one more condition
1 parent 1e8a15a commit 4640be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ const authSetup = function () {
631631
"." + location.hostname.split('.').reverse()[0];
632632
}
633633
const prefixArray = ['apps', 'software'];
634-
if (hostdomain) {
634+
if (hostdomain && value) {
635635
for (let i = 0; i < prefixArray.length; i++) {
636636
if (value.indexOf(prefixArray[i] + hostdomain) > -1) {
637637
const queryParam = window.location.search.substr(1);

0 commit comments

Comments
 (0)