mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 06:48:57 +08:00
chore: 增加部分 clash.meta(mihomo) 内核客户端的 User-Agent(clash-verge, flclash)
This commit is contained in:
parent
05bdf95a29
commit
9785271c5b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.357",
|
"version": "2.14.358",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -28,7 +28,9 @@ export function getPlatformFromUserAgent({ ua, UA }) {
|
|||||||
return 'Stash';
|
return 'Stash';
|
||||||
} else if (
|
} else if (
|
||||||
ua === 'meta' ||
|
ua === 'meta' ||
|
||||||
(ua.indexOf('clash') !== -1 && ua.indexOf('meta') !== -1)
|
(ua.indexOf('clash') !== -1 && ua.indexOf('meta') !== -1) ||
|
||||||
|
ua.indexOf('clash-verge') !== -1 ||
|
||||||
|
ua.indexOf('flclash') !== -1
|
||||||
) {
|
) {
|
||||||
return 'ClashMeta';
|
return 'ClashMeta';
|
||||||
} else if (ua.indexOf('clash') !== -1) {
|
} else if (ua.indexOf('clash') !== -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user