kopia lustrzana https://github.com/lynn/hello-wordl
Fix challenge link generation
rodzic
e9ab562aac
commit
6583be1968
|
@ -27,10 +27,7 @@ function randomTarget(wordLength: number): string {
|
|||
}
|
||||
|
||||
function getChallengeUrl(target: string): string {
|
||||
return window.location.href.replace(
|
||||
/(\?.*)?$/,
|
||||
"?challenge=" + encode(target)
|
||||
);
|
||||
return window.location.origin + window.location.pathname + "?challenge=" + encode(target);
|
||||
}
|
||||
|
||||
let challengeString = "";
|
||||
|
|
Ładowanie…
Reference in New Issue