Microsoft Edge Dev (Chromium) UA support

This commit is contained in:
Mashiro 2019-05-23 23:08:57 +08:00 committed by GitHub
parent 2466276a8e
commit da1304cfde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -786,7 +786,10 @@ function siren_get_browsers($ua){
else
$icon = 'ie';
}elseif (preg_match('#Edge/([a-zA-Z0-9.]+)#i', $ua, $matches)){
$title = 'Microsoft Edge '. $matches[1];
$title = 'Edge '. $matches[1];
$icon = 'edge';
}elseif (preg_match('#Edg/([a-zA-Z0-9.]+)#i', $ua, $matches)){
$title = 'Edge Dev (Chromium) '. $matches[1];
$icon = 'edge';
}elseif (preg_match('#360([a-zA-Z0-9.]+)#i', $ua, $matches)) {
$title = '360 Browser '. $matches[1];