Add missing scope in ftl template

This commit is contained in:
Joseph Garrone
2024-09-22 18:22:11 +02:00
parent 08f03b3118
commit 159a5f60d0

View File

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