Minification and compression
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-02-07 00:30:08 -03:00
parent 93e2618dcf
commit 840c6cdeba
9 changed files with 501 additions and 39 deletions

View File

@@ -2,8 +2,14 @@
// Default Trusted Type policy so Svelte hydration can assign to innerHTML under CSP require-trusted-types-for 'script'.
if (typeof window.trustedTypes !== 'undefined' && window.trustedTypes.createPolicy) {
try {
window.trustedTypes.createPolicy('default', { createHTML: function (input) { return input; } });
} catch { /* policy already exists */ }
window.trustedTypes.createPolicy('default', {
createHTML: function (input) {
return input;
},
});
} catch {
/* policy already exists */
}
}
var t = localStorage.getItem('mifi-theme');