Skip to content

Commit

Permalink
Change os check
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Oct 24, 2023
1 parent 139c5f2 commit 96394f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/core/editor3/components/Editor3Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class Editor3Component extends React.Component<IProps, IState> {
}

isMacOS() {
if (navigator.userAgent.indexOf('Mac') != -1) {
if (navigator.userAgent.toLowerCase().includes('macintosh') || navigator.userAgent.toLowerCase().includes('mac os')) {
return true;
}

Expand Down

0 comments on commit 96394f7

Please sign in to comment.