app: Add messages to warm any Incompatible browser

Fixes #639
This commit is contained in:
Daniel 2023-08-05 02:25:55 -07:00 committed by GitHub
parent 6cd6b412fe
commit 6d796df097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

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>