Skip to content

Commit

Permalink
fix: support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Jan 26, 2024
1 parent 0e9b700 commit 0a7cd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getBrowserOs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DEFAULT_OS } from './constants'

export function getBrowserOs(navigator: any) {
const supportedOs = ['Mac', 'Linux', 'MacIntel']
const supportedOs = ['Win', 'Mac', 'Linux', 'MacIntel']
const platform = navigator.platform
return supportedOs.find((os) => platform.includes(os)) || DEFAULT_OS
}

0 comments on commit 0a7cd12

Please # to comment.