fix safari ua matcher

This commit is contained in:
Azareal 2020-03-08 14:36:27 +10:00
parent 7d2be466b3
commit 6387e2bce0
2 changed files with 4 additions and 0 deletions

View File

@ -668,6 +668,7 @@ var markToAgent = map[string]string{
"OPR": "opera", "OPR": "opera",
"Chrome": "chrome", "Chrome": "chrome",
"Firefox": "firefox", "Firefox": "firefox",
"Safari": "safari",
"MSIE": "internetexplorer", "MSIE": "internetexplorer",
"Trident": "trident", "Trident": "trident",
"Edge": "edge", "Edge": "edge",
@ -712,6 +713,7 @@ var markToID = map[string]int{
"OPR": 3, "OPR": 3,
"Chrome": 2, "Chrome": 2,
"Firefox": 1, "Firefox": 1,
"Safari": 4,
"MSIE": 6, "MSIE": 6,
"Trident": 7, "Trident": 7,
"Edge": 5, "Edge": 5,

View File

@ -287,6 +287,7 @@ func main() {
"OPR", "OPR",
"Chrome", "Chrome",
"Firefox", "Firefox",
"Safari",
"MSIE", "MSIE",
"Trident", "Trident",
"Edge", "Edge",
@ -334,6 +335,7 @@ func main() {
"OPR": "opera", "OPR": "opera",
"Chrome": "chrome", "Chrome": "chrome",
"Firefox": "firefox", "Firefox": "firefox",
"Safari": "safari",
"MSIE": "internetexplorer", "MSIE": "internetexplorer",
"Trident": "trident", // Hack to support IE11 "Trident": "trident", // Hack to support IE11
"Edge": "edge", "Edge": "edge",