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

View File

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