This commit is contained in:
Joseph Garrone
2024-09-16 14:30:27 +02:00
parent a5e3ecb38b
commit 9a97d86ff9
3 changed files with 15 additions and 9 deletions

View File

@ -85,6 +85,19 @@ attributes_to_attributesByName: {
});
}
window.kcContext = kcContext;
<#if xKeycloakify.themeType == "login" >
const script = document.createElement("script");
script.type = "importmap";
script.textContent = JSON.stringify({
imports: {
"rfc4648": kcContext.url.resourcesCommonPath + "/node_modules/rfc4648/lib/rfc4648.js"
}
}, null, 2);
document.head.appendChild(script);
</#if>
function decodeHtmlEntities(htmlStr){
var element = decodeHtmlEntities.element;
if (!element) {