forked from akai/readest
chore: parse webkit version on linux (#1299)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user