app: Add the JS warnings to index_local.html

This commit is contained in:
Valentin Tolmer 2023-08-05 21:47:31 +02:00 committed by nitnelave
parent 6d796df097
commit 70bbe7f5ad
2 changed files with 37 additions and 22 deletions

View File

@ -44,11 +44,9 @@
<body>
<noscript>
<!--
This will be displayed if the user doesn't have JavaScript enabled.
-->
LLDAP requires JavaScript, please switch to a compatible browser or enable
it.
<!-- This will be displayed if the user doesn't have JavaScript enabled. -->
LLDAP requires JavaScript, please switch to a compatible browser or
enable it.
</noscript>
<script>

View File

@ -40,6 +40,23 @@
</head>
<body>
<noscript>
<!-- This will be displayed if the user doesn't have JavaScript enabled. -->
LLDAP requires JavaScript, please switch to a compatible browser or
enable it.
</noscript>
<script>
/* Detect if the user has WASM support. */
if (typeof WebAssembly === 'undefined') {
const pWASMMsg = document.createElement("p")
pWASMMsg.innerHTML = `
LLDAP requires WASM and JIT for JavaScript, please switch to a
compatible browser or enable it.
`
document.body.appendChild(pWASMMsg)
}
</script>
</body>
</html>