DEV: Trigger basic-html view for unsupported browsers (#124)

This commit is contained in:
David Taylor
2025-04-10 20:39:30 +01:00
committed by GitHub
parent 8e5cef819d
commit b220d87a0d
+6
View File
@@ -0,0 +1,6 @@
<script>
if(!CSS.supports("(color: hsl(from white h s l))")){
window.unsupportedBrowser = true;
window.I18n.translations[I18n.locale].js.browser_update = 'The Horizon theme does not support your browser. Please update your browser, or <a href="?safe_mode=no_themes">switch to safe mode</a>.';
}
</script>