Full typescript and mvvm implementation #3
@ -5,7 +5,7 @@ export class CpuRepository {
|
|||||||
#nextCPU;
|
#nextCPU;
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
const fetchResult = await fetch("./js/data.json");
|
const fetchResult = await fetch("../data.json");
|
||||||
this.#cpuList = await fetchResult.json();
|
this.#cpuList = await fetchResult.json();
|
||||||
|
|
||||||
this.#currentCPU = this.getRandomCpu();
|
this.#currentCPU = this.getRandomCpu();
|
||||||
|
Loading…
Reference in New Issue
Block a user