style: adjust modal height

This commit is contained in:
zhom
2025-07-08 04:57:25 +04:00
parent 689ac8e3ca
commit 3ca454a2c5
5 changed files with 32 additions and 15 deletions
+10
View File
@@ -49,3 +49,13 @@ export function getBrowserIcon(browserType: string) {
return null;
}
}
export const getCurrentOS = () => {
if (typeof window !== "undefined") {
const userAgent = window.navigator.userAgent;
if (userAgent.includes("Win")) return "windows";
if (userAgent.includes("Mac")) return "macos";
if (userAgent.includes("Linux")) return "linux";
}
return "unknown";
};