summaryrefslogtreecommitdiff
path: root/includes/components/footer.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/components/footer.inc')
-rw-r--r--includes/components/footer.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/components/footer.inc b/includes/components/footer.inc
index 78c3148..51e35d1 100644
--- a/includes/components/footer.inc
+++ b/includes/components/footer.inc
@@ -39,6 +39,13 @@ global $pageFile;
});
window.fetch("/api/rename?name=" + encodeURIComponent("Cold Haze Web (" + UAParser().browser.name + " on " + UAParser().os.name + ")"));
+
+ if (document.createElement("canvas").getContext("webgl") === null) {
+ let style = document.createElement("style");
+ style.innerText = "* { backdrop-filter: none !important; }";
+ document.head.appendChild(style);
+ try { document.getElementById("gpuWarning").style.display = ""; } catch (e) {}
+ }
</script>
<?php if (isset($_GET["performance"])): ?>