mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 22:12:33 +08:00
[FIXED] now the default key should be CMD on MacOS
This commit is contained in:
10
app/utils.ts
10
app/utils.ts
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user