mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-28 03:50:10 +00:00
Merge acfdcdbc63
into a7529c7498
This commit is contained in:
commit
aa493a40cf
@ -267,9 +267,8 @@ class ReferralCard {
|
||||
set code(c: string) {
|
||||
this._code = c;
|
||||
let url = window.location.href;
|
||||
for (let split of ["#", "?", "account", "my"]) {
|
||||
url = url.split(split)[0];
|
||||
}
|
||||
let pathArray = url.split('/');
|
||||
url = `${pathArray[0]}//${pathArray[2]}/`;
|
||||
if (url.slice(-1) != "/") { url += "/"; }
|
||||
url = url + "invite/" + this._code;
|
||||
this._url = url;
|
||||
|
Loading…
Reference in New Issue
Block a user