25 lines
938 B
HTML
25 lines
938 B
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="light"><!-- don't change !!! data-bs-theme is changed dynamically in the C++ code when the index.html file is loaded or when the custom css is loaded for dev setups-->
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>...</title>
|
|
<script>
|
|
// Custom bit of code to redirect to /app/ if the uri is /app
|
|
// The reason for this is that the path to assets is relative
|
|
// so it won't work for /app but it will for /app/
|
|
const currentUri = new URL(window.location.href);
|
|
|
|
if (currentUri.pathname.endsWith("app")) {
|
|
currentUri.pathname += "/";
|
|
window.location.href = currentUri.toString();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|