Skip to content

Commit

Permalink
Update platform detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ibretsam committed Dec 20, 2024
1 parent ff60fd7 commit e82da40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions monosketch-svelte/src/lib/mono/common/platform.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const isCommandKeySupported = (): boolean => {
// TODO: Resolve platform deprecated.
return navigator.platform.startsWith('Mac');
return navigator.userAgent.includes('Mac')

Check failure on line 2 in monosketch-svelte/src/lib/mono/common/platform.ts

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
};

export const isCommandKeyOn = (e: KeyboardEvent): boolean => {
Expand Down

0 comments on commit e82da40

Please sign in to comment.