Fix challenge link generation
This commit is contained in:
@@ -27,10 +27,7 @@ function randomTarget(wordLength: number): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getChallengeUrl(target: string): string {
|
function getChallengeUrl(target: string): string {
|
||||||
return window.location.href.replace(
|
return window.location.origin + window.location.pathname + "?challenge=" + encode(target);
|
||||||
/(\?.*)?$/,
|
|
||||||
"?challenge=" + encode(target)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let challengeString = "";
|
let challengeString = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user