toolchain test

This commit is contained in:
chopster44 committed 2025-10-30 15:06:00 +00:00
1 parent 420927595d
commit 0bcba44b1d
4 files changed
+11 -7

No files matched your search

+4 -2
View File
@@ -8,8 +8,10 @@ class Updater {
this.feedType = feedType;
}
async getArchive() {
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
console.log(res);
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
"mode": "cors"
});
return res;
}
}
+1 -1
View File
@@ -2,5 +2,5 @@ export default class Updater {
archiveURL: string;
feedType: string;
constructor(archiveURL?: string, feedType?: string);
getArchive(): Promise<void>;
getArchive(): Promise<Response>;
}
+4 -2
View File
@@ -6,8 +6,10 @@ class Updater {
this.feedType = feedType;
}
async getArchive() {
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
console.log(res);
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
"mode": "cors"
});
return res;
}
}
+2 -2
View File
@@ -6,11 +6,11 @@ export default class Updater {
this.feedType = feedType;
}
async getArchive(): Promise<void> {
async getArchive(): Promise<Response> {
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
"mode": "cors"
});
console.log(res);
return res;
}
}