This commit is contained in:
kakkokari-gtyih 2025-10-04 19:12:01 +09:00
parent 8ebaaee65e
commit 26ca5506da
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export async function getUserEnvironment(): Promise<UserEnvironment> {
if (uaData.platform === 'Windows' && uaData.platformVersion != null) { if (uaData.platform === 'Windows' && uaData.platformVersion != null) {
// https://learn.microsoft.com/ja-jp/microsoft-edge/web-platform/how-to-detect-win11 // https://learn.microsoft.com/ja-jp/microsoft-edge/web-platform/how-to-detect-win11
const majorPlatformVersion = parseInt(uaData.platformVersion.split('.')[0]); const majorPlatformVersion = parseInt(uaData.platformVersion.split('.')[0]);
if(majorPlatformVersion >= 13) { if (majorPlatformVersion >= 13) {
osVersion = '11 or later'; osVersion = '11 or later';
} else if (majorPlatformVersion > 0) { } else if (majorPlatformVersion > 0) {
osVersion = '10'; osVersion = '10';