mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
.includes is never called on undefined
This commit is contained in:
@@ -61,4 +61,5 @@ export const isMac =
|
||||
typeof process !== 'undefined' && process.platform === 'darwin'
|
||||
? true
|
||||
: typeof navigator !== 'undefined' &&
|
||||
(/Mac/.test(navigator.userAgent) || navigator.platform?.toLowerCase().includes('mac'));
|
||||
(/Mac/.test(navigator.userAgent) ||
|
||||
(navigator.platform ? navigator.platform.toLowerCase().includes('mac') : false));
|
||||
|
||||
Reference in New Issue
Block a user