[FIXED] now the default key should be CMD on MacOS

This commit is contained in:
Eric R
2023-09-28 06:11:48 -04:00
committed by EricGit
parent 3bfcdf9c41
commit f3d5fc7a84
2 changed files with 7 additions and 6 deletions

View File

@@ -178,10 +178,10 @@ export function getCSSVar(varName: string) {
* Detects if the Operation system is MacOS
*/
export function isMacOS(): boolean {
if (window !== 'undefined') {
let userAgent = window?.navigator?.userAgent
if (userAgent.indexOf('Mac') != -1) return true
}
if (typeof window !== "undefined") {
let userAgent = window?.navigator?.userAgent;
if (userAgent.indexOf("Mac") != -1) return true;
}
return false
return false;
}