Skip to content

Commit

Permalink
fix: fix mac platform on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellhu committed Aug 13, 2021
1 parent 63c31e3 commit 0bdc462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/platformUtil.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* istanbul ignore file */
export function isPlatformMac(): boolean {
return /mac\sos/i.test(navigator.appVersion);
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
}

0 comments on commit 0bdc462

Please sign in to comment.