mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-13 09:36:05 +00:00
chore: fix shadowrocketUrl client (#4183)
This commit is contained in:
parent
59c55dfc92
commit
a1b2382877
1 changed files with 3 additions and 2 deletions
|
|
@ -135,8 +135,9 @@
|
||||||
return enabledOk && expiryOk && trafficOk;
|
return enabledOk && expiryOk && trafficOk;
|
||||||
},
|
},
|
||||||
shadowrocketUrl() {
|
shadowrocketUrl() {
|
||||||
const rawUrl = this.app.subUrl + '?flag=shadowrocket';
|
const separator = this.app.subUrl.includes('?') ? '&' : '?';
|
||||||
const base64Url = btoa(rawUrl);
|
const rawUrl = this.app.subUrl + separator + 'flag=shadowrocket';
|
||||||
|
const base64Url = encodeURIComponent(btoa(rawUrl));
|
||||||
const remark = encodeURIComponent(this.app.sId || 'Subscription');
|
const remark = encodeURIComponent(this.app.sId || 'Subscription');
|
||||||
return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;
|
return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue