TCM: Enable starfield on mobile

This commit is contained in:
2026-09-13 23:27:20 +02:00
parent 6f3d6a1661
commit bda845dd8e
-1
View File
@@ -280,7 +280,6 @@
<canvas id="starfield" style="position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;"></canvas> <canvas id="starfield" style="position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;"></canvas>
<script> <script>
(function() { (function() {
if (window.matchMedia("(max-width: 768px)").matches) return;
const canvas = document.getElementById('starfield'); const canvas = document.getElementById('starfield');
const ctx = canvas.getContext('2d'); const ctx = canvas.getContext('2d');
let w, h, scrollY = 0; let w, h, scrollY = 0;