toolchain test
This commit is contained in:
4 files changed
+12
-8
No files matched your search
Vendored
+4
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -2,5 +2,5 @@ export default class Updater {
|
||||
archiveURL: string;
|
||||
feedType: string;
|
||||
constructor(archiveURL?: string, feedType?: string);
|
||||
getArchive(): Promise<void>;
|
||||
getArchive(): Promise<Response>;
|
||||
}
|
||||
Vendored
+4
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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"
|
||||
"mode": "cors"
|
||||
});
|
||||
console.log(res);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user