Skip to content

Commit

Permalink
fix: macos detection
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed Nov 15, 2023
1 parent ae3abb6 commit 0a4d707
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/function/twikoo/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ const fn = {
} else if (os.name === 'macOS') {
const majorPlatformVersion = os.version.split('.')[0]
switch (majorPlatformVersion) {
case 11:
case '11':
os.versionName = 'Big Sur'
break
case 12:
case '12':
os.versionName = 'Monterey'
break
case 13:
case '13':
os.versionName = 'Ventura'
break
case 14:
case '14':
os.versionName = 'Sonoma'
break
default:
Expand Down

0 comments on commit 0a4d707

Please sign in to comment.