add noscript message

This commit is contained in:
janderedev 2022-03-20 22:12:58 +01:00
parent 41630149b3
commit f830e99a64
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A
3 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,10 @@
</head>
<body>
<div id="root"></div>
<noscript>
<h1 style="color: #ffffff;">This application requires JavaScript.</h1>
<img src="/noscript.png" style="max-width: 100%;" />
</noscript>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

BIN
web/public/noscript.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

View file

@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
plugins: [react()],
publicDir: 'public',
})