添加Loon新UA判断

This commit is contained in:
Peng-YM
2020-09-12 22:28:11 +08:00
parent 92562dff6c
commit fea3dfb7b9
6 changed files with 105 additions and 8 deletions

View File

@@ -5,6 +5,7 @@
"main": "sub-store.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"serve": "node sub-store.js",
"build": "curl -X POST -s --data-urlencode 'input@sub-store.js' https://javascript-minifier.com/raw > sub-store.min.js"
},
"author": "",

View File

@@ -2374,7 +2374,7 @@ function getPlatformFromHeaders(headers) {
return "QX";
} else if (UA.indexOf("Surge") !== -1) {
return "Surge";
} else if (UA.indexOf("Decar") !== -1) {
} else if (UA.indexOf("Decar") !== -1 || UA.indexOf("Loon") !== -1) {
return "Loon";
} else {
// browser