mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
添加Loon新UA判断
This commit is contained in:
@@ -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": "",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user