|
|
@ -37,10 +37,6 @@ class GetJson { |
|
|
|
this.url = url; |
|
|
|
this.url = url; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get item() { |
|
|
|
|
|
|
|
return this.item; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async item() { |
|
|
|
async item() { |
|
|
|
const resp = await fetch(`${this.url}`); |
|
|
|
const resp = await fetch(`${this.url}`); |
|
|
|
console.assert(resp.status == 200, "failed to get it"); |
|
|
|
console.assert(resp.status == 200, "failed to get it"); |
|
|
|