params shortly

This commit is contained in:
Alexey Olendor
2025-12-27 03:39:15 +03:00
parent 5d67f1dd1f
commit 0e1d99fc7b
+1 -1
View File
@@ -20,7 +20,7 @@ const cheatsEnabled = params.get('cheats') === "1"
if (params.get('request_original_game') !== "1")
localStorage.setItem('vcsky.haveOriginalGame', 'true');
const maxFPS = parseInt(new URLSearchParams(window.location.search).get('max_fps')) || 0;
const maxFPS = parseInt(params.get('max_fps')) || 0;
const isMobile = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
let isTouch = isMobile && window.matchMedia('(pointer: coarse)').matches;