From a0f1ff53672072ad11f4ba1a77386d97f4fb5c7c Mon Sep 17 00:00:00 2001 From: lenochen Date: 2026年6月29日 10:29:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DEdge=20UA=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E5=AF=BC=E8=87=B4=E7=9A=84browser=E5=92=8Cversion?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/device.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device.js b/src/device.js index 0262cce..30263a2 100755 --- a/src/device.js +++ b/src/device.js @@ -338,7 +338,7 @@ const Device = (function () { 'Safari': u?.indexOf('Safari')> -1, 'Chrome': u?.indexOf('Chrome')> -1 || u?.indexOf('CriOS')> -1, 'IE': u?.indexOf('MSIE')> -1 || u?.indexOf('Trident')> -1, - 'Edge': u?.indexOf('Edge')> -1, + 'Edge': u?.indexOf('Edg')> -1, 'Firefox': u?.indexOf('Firefox')> -1 || u?.indexOf('FxiOS')> -1, 'Firefox Focus': u?.indexOf('Focus')> -1, 'Chromium': u?.indexOf('Chromium')> -1, @@ -635,7 +635,7 @@ const Device = (function () { return u?.replace(/^.*MSIE ([\d.]+).*$/, '1ドル')?.replace(/^.*rv:([\d.]+).*$/, '1ドル') }, 'Edge': function () { - return u?.replace(/^.*Edge\/([\d.]+).*$/, '1ドル') + return u?.replace(/^.*Edge?\/([\d.]+).*$/, '1ドル') }, 'Firefox': function () { return u?.replace(/^.*Firefox\/([\d.]+).*$/, '1ドル')?.replace(/^.*FxiOS\/([\d.]+).*$/, '1ドル')

AltStyle によって変換されたページ (->オリジナル) /