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" />
<!-- Preload PixelatedElegance brand font -->
<link rel="preload" href="assets/fonts/pixelated-elegance/PixelatedEleganceRegular-ovyAA.ttf" as="font" type="font/ttf"
crossorigin>
<link rel="preload" href="assets/fonts/pixelated-elegance/PixelatedEleganceRegular-ovyAA.ttf" as="font"
type="font/ttf" crossorigin>
<style>
@font-face {
@@ -52,14 +52,14 @@
window.pdfjsLib = pdfjsLib;
})();
</script>
<!-- Suppress v8BreakIterator deprecation warning (Flutter framework issue) -->
<script>
// 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
// See: https://github.com/nickvds/my-public/issues
const originalWarn = console.warn;
console.warn = function(...args) {
console.warn = function (...args) {
if (args[0] && typeof args[0] === 'string' && args[0].includes('v8BreakIterator')) {
return; // Suppress this specific warning
}