Return undefined if the context dosen't match the theme
This commit is contained in:
@ -121,6 +121,10 @@ export function getKcContext<KcContextExtension extends { pageId: string } = nev
|
||||
return { "kcContext": undefined };
|
||||
}
|
||||
|
||||
if (!("login" in realKcContext)) {
|
||||
return { "kcContext": undefined };
|
||||
}
|
||||
|
||||
{
|
||||
const { url } = realKcContext;
|
||||
|
||||
|
Reference in New Issue
Block a user