fix grammar mistake in variable name

This commit is contained in:
2025-10-13 21:15:46 +03:00
parent 4baf29d53e
commit 2ada67e225

View File

@@ -48,7 +48,7 @@ import { getRegretevatorState } from "../lib/RegretevatorUtil";
*/ */
const windowcClassFriendyName: {[windowClass: string]: string} = { const windowClassFriendyName: {[windowClass: string]: string} = {
"steam_app_1671210": "Deltarune", "steam_app_1671210": "Deltarune",
"org.vinegarhq.Sober": "Roblox", "org.vinegarhq.Sober": "Roblox",
"steam_app_1690940": "Deltarune", // demo "steam_app_1690940": "Deltarune", // demo
@@ -61,7 +61,7 @@ async function getWMClass(): Promise<string> {
async function getFilename(wmClass?: string): Promise<string> { async function getFilename(wmClass?: string): Promise<string> {
const _d = new Date(); const _d = new Date();
let ic = (wmClass && windowcClassFriendyName[wmClass]) || wmClass || "Hyprland"; let ic = (wmClass && windowClassFriendyName[wmClass]) || wmClass || "Hyprland";
const isRoblox = wmClass === "org.vinegarhq.Sober"; const isRoblox = wmClass === "org.vinegarhq.Sober";
if (isRoblox) {ic = "Roblox"; }; if (isRoblox) {ic = "Roblox"; };
const regretevatorState = isRoblox ? getRegretevatorState() : null; const regretevatorState = isRoblox ? getRegretevatorState() : null;