mirror of
https://github.com/Lolendor/reVCDOS.git
synced 2026-10-10 03:43:12 +08:00
params shortly
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user