mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
typo
This commit is contained in:
parent
cae145ea6a
commit
a7d9b4a3b5
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,7 @@ export class Advent22 {
|
|||
|
||||
public api_url(endpoint?: string): string {
|
||||
if (endpoint === undefined)
|
||||
return `${this.api_baseurl}`;
|
||||
return this.api_baseurl;
|
||||
|
||||
return `${this.api_baseurl}/${endpoint}`;
|
||||
}
|
||||
|
@ -66,6 +66,9 @@ export class Advent22 {
|
|||
reader.onloadend = () => {
|
||||
if (typeof reader.result === "string")
|
||||
on_success(reader.result);
|
||||
|
||||
else
|
||||
this.fail(endpoint);
|
||||
}
|
||||
},
|
||||
"blob",
|
||||
|
|
Loading…
Reference in a new issue