Files
EnvelopeGenerator/EnvelopeGenerator.Server/EnvelopeGenerator.Server/Components/App.razor
TekH 24613bd598 Disable SIMD and remove fallback UI logic
Disabled WebAssembly SIMD support by adding `<WasmEnableSIMD>false</WasmEnableSIMD>` to the project file for compatibility or performance reasons.

Removed the fallback UI and associated JavaScript logic from `App.razor`, including error handling for WebAssembly startup failures and the fallback message display.

Simplified the Blazor startup script by removing error handling and fallback logic, leaving only the basic `window.Blazor.start()` call.
2026-11-24 14:12:17 +01:00

57 lines
2.3 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flag-icons@7.2.3/css/flag-icons.min.css" />
<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet" href="css/envelope-viewer.css" />
<link rel="stylesheet" href="_content/MudBlazor/MudBlazor.min.css" />
<link rel="stylesheet" href="EnvelopeGenerator.Server.styles.css" />
<HeadOutlet />
<!-- Apply saved theme immediately on page load — before WASM boots.
Reads localStorage["signflow.theme"] to avoid flash of default theme. -->
<script>
(function () {
var allowed = { 'blazing-dark': true, 'blazing-berry': true, 'purple': true };
var theme = localStorage.getItem('signflow.theme');
if (!theme || !allowed[theme]) theme = 'blazing-berry';
var bsTheme = theme === 'blazing-dark' ? 'dark' : 'light';
document.documentElement.setAttribute('data-sf-theme', theme);
document.documentElement.setAttribute('data-bs-theme', bsTheme);
var link = document.createElement('link');
link.id = 'dx-theme-link';
link.rel = 'stylesheet';
link.href = '_content/DevExpress.Blazor.Themes/' + theme + '.bs5.min.css';
document.head.appendChild(link);
})();
</script>
</head>
<body>
<Routes />
<script src="_content/DevExpress.Blazor.Resources/js/preload-script.js"></script>
<script src="js/typed.umd.js"></script>
<script src="js/receiver-signature.js?v=9"></script>
<script src="js/signflow-theme.js"></script>
<script src="js/envelope-editor.js"></script>
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
<script src="_framework/blazor.web.js" autostart="false"></script>
<script>
(function () {
if (!window.WebAssembly || !window.Blazor || typeof window.Blazor.start !== 'function') {
return;
}
window.Blazor.start({
webAssembly: {}
});
})();
</script>
</body>
</html>