chore: parse webkit version on linux (#1299)

This commit is contained in:
Huang Xin
2025-06-01 10:57:53 +08:00
committed by GitHub
parent dad2dfd078
commit dbc4651141
+1 -1
View File
@@ -21,7 +21,7 @@ export const parseWebViewVersion = (appService: AppService | null): string => {
return match ? `Edge ${match[1]}` : 'Edge WebView2';
} else if (appService?.appPlatform === 'tauri' && appService?.osPlatform === 'linux') {
// Linux WebView
const match = ua.match(/Chromium\/([0-9.]+)/);
const match = ua.match(/AppleWebKit\/([0-9.]+)/);
return match ? `WebView ${match[1]}` : 'Linux WebView';
} else if (ua.includes('CriOS') && ua.includes('Mobile/') && ua.includes('Safari')) {
// iOS Chrome WebView