app: Add messages to warm any Incompatible browser

Fixes #639
This commit is contained in:
Daniel authored and GitHub committed 2023-08-05 11:25:55 +02:00
1 parent 6cd6b412fe
commit 6d796df097
1 file changed
+19
+19
View File
@@ -43,6 +43,25 @@
</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>