IDEMPIERE-5966 Restore support for http (#2153)

This commit is contained in:
Carlos Ruiz 2023-12-21 14:34:52 +01:00 committed by GitHub
parent 4f52a4efcf
commit ada04bc173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -21,8 +21,6 @@ Copyright (C) 2007 Ashley G Ramdass.
"?>
<zk>
<script><![CDATA[
if (window.location.protocol == 'https:') {
zk.load("jawwa.atmosphere");
zk.load("org.idempiere.websocket");
zk.load("adempiere.local.storage");
@ -37,13 +35,8 @@ if (window.location.protocol == 'https:') {
if (console) console.log(msg);
};
});
} //window.location.protocol check
else {
alert("Direct http:// is forbidden - please use https:// instead with the SSL port used in your installation");
}
]]>
</script>
<include src="${themePreference}" if="${execution.getScheme() == 'https'}"/>
<window use="org.adempiere.webui.AdempiereWebUI" if="${execution.getScheme() == 'https'}"/>
<include src="${themePreference}"/>
<window use="org.adempiere.webui.AdempiereWebUI"/>
</zk>