Refactor index.html: Clean up preload link formatting and improve console warning suppression

This commit is contained in:
Leon Bösche
2026-01-13 14:38:59 +01:00
parent 749672509b
commit 634aa521bd

View File

@@ -31,8 +31,8 @@
<link rel="icon" type="image/png" href="favicon.png" /> <link rel="icon" type="image/png" href="favicon.png" />
<!-- Preload PixelatedElegance brand font --> <!-- Preload PixelatedElegance brand font -->
<link rel="preload" href="assets/fonts/pixelated-elegance/PixelatedEleganceRegular-ovyAA.ttf" as="font" type="font/ttf" <link rel="preload" href="assets/fonts/pixelated-elegance/PixelatedEleganceRegular-ovyAA.ttf" as="font"
crossorigin> type="font/ttf" crossorigin>
<style> <style>
@font-face { @font-face {
@@ -52,14 +52,14 @@
window.pdfjsLib = pdfjsLib; window.pdfjsLib = pdfjsLib;
})(); })();
</script> </script>
<!-- Suppress v8BreakIterator deprecation warning (Flutter framework issue) --> <!-- Suppress v8BreakIterator deprecation warning (Flutter framework issue) -->
<script> <script>
// This is a known Flutter web issue - the framework uses v8BreakIterator for feature detection // This is a known Flutter web issue - the framework uses v8BreakIterator for feature detection
// The warning can be safely ignored as Flutter handles the fallback to Intl.Segmenter internally // The warning can be safely ignored as Flutter handles the fallback to Intl.Segmenter internally
// See: https://github.com/nickvds/my-public/issues // See: https://github.com/nickvds/my-public/issues
const originalWarn = console.warn; const originalWarn = console.warn;
console.warn = function(...args) { console.warn = function (...args) {
if (args[0] && typeof args[0] === 'string' && args[0].includes('v8BreakIterator')) { if (args[0] && typeof args[0] === 'string' && args[0].includes('v8BreakIterator')) {
return; // Suppress this specific warning return; // Suppress this specific warning
} }