From 0a4d707e6099c3ac10d5804957c2b980f967b770 Mon Sep 17 00:00:00 2001 From: iMaeGoo Date: Wed, 15 Nov 2023 14:15:44 +0800 Subject: [PATCH] fix: macos detection --- src/server/function/twikoo/utils/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/function/twikoo/utils/index.js b/src/server/function/twikoo/utils/index.js index 17f642b83..753319a36 100644 --- a/src/server/function/twikoo/utils/index.js +++ b/src/server/function/twikoo/utils/index.js @@ -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: