handle cases where aap.learningDashboardBase is missing
This commit is contained in:
parent
3710aa2501
commit
c3329d6b97
@ -76,7 +76,7 @@ const setLearningDashboardCookie = () => {
|
|||||||
|
|
||||||
// In a cluster setup it will be necessary to specify the root domain
|
// In a cluster setup it will be necessary to specify the root domain
|
||||||
// because the Dashboard might be in a different subdomain
|
// because the Dashboard might be in a different subdomain
|
||||||
if (learningDashboardBase.startsWith('http')) {
|
if (learningDashboardBase && learningDashboardBase.startsWith('http')) {
|
||||||
const commonDomain = findCommonDomain(learningDashboardBase, window.location.href);
|
const commonDomain = findCommonDomain(learningDashboardBase, window.location.href);
|
||||||
if (commonDomain !== '') {
|
if (commonDomain !== '') {
|
||||||
cookieString += `;domain=${commonDomain}`;
|
cookieString += `;domain=${commonDomain}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user