Public: BrowserDetector: Change minimum supported safari verion to 16
This commit is contained in:
parent
1172f1769e
commit
798d5384ce
@ -34,8 +34,8 @@
|
||||
IE: 11,
|
||||
Edge: 109,
|
||||
Opera: 90,
|
||||
Safari: 14,
|
||||
SafariMobile: 14,
|
||||
Safari: 16,
|
||||
SafariMobile: 16,
|
||||
AscDesktopEditor: 6,
|
||||
SamsungBrowser: 4,
|
||||
UCBrowser: 12,
|
||||
@ -50,7 +50,7 @@
|
||||
let temp = [];
|
||||
let match =
|
||||
agent.match(
|
||||
/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i
|
||||
/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i,
|
||||
) || [];
|
||||
|
||||
if (/trident/i.test(match[1])) {
|
||||
@ -60,7 +60,7 @@
|
||||
|
||||
if (match[1] === "Chrome") {
|
||||
temp = agent.match(
|
||||
/\b(OPR|Edge|AscDesktopEditor|SamsungBrowser|UCBrowser)\/(\d+.\d)/
|
||||
/\b(OPR|Edge|AscDesktopEditor|SamsungBrowser|UCBrowser)\/(\d+.\d)/,
|
||||
);
|
||||
|
||||
const userOS =
|
||||
|
Loading…
Reference in New Issue
Block a user