Skip to content

Commit

Permalink
Fix team link
Browse files Browse the repository at this point in the history
Fixed editing existing team not removing old url params
  • Loading branch information
SuenoImposible committed Nov 1, 2024
1 parent c634d59 commit 4ecb60a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handlers/URLHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function UpdateLink() {
let urlParams = "?v1=";
let urlParams = "/?v1=";
globalThis.TeamData.filter(sinner => (sinner.EquipedIdentity.Id % 100 != 1) || sinner.EquipedEgos.length != 1 || (sinner.EquipedEgos[0]!.Id % 100 != 1))
.forEach(sinner => {
urlParams += "s" + sinner.SinnerEnum;
Expand All @@ -13,5 +13,5 @@ export function UpdateLink() {
});
});

globalThis.TeamLink = (window.location.href + urlParams);
globalThis.TeamLink = (window.location.origin + urlParams);
}

0 comments on commit 4ecb60a

Please sign in to comment.