Feat: ImageRequestInit (#979)

* add ImageRequestInit & fix Hako

* remove multisrc fetchFile

* remove plugins fetchFile

* update docs and template file
This commit is contained in:
nyagami
2024-06-08 20:09:33 +07:00
committed by GitHub
parent 6062f51460
commit 60d95fb8d2
85 changed files with 441 additions and 692 deletions
-4
View File
@@ -382,10 +382,6 @@ class ReLibraryPlugin implements Plugin.PluginBase {
this.searchFunc.setHaystack(novels);
return this.searchFunc.search(searchTerm);
}
async fetchImage(url: string): Promise<string | undefined> {
return fetchFile(url, { headers: { referer: this.site } });
}
}
export default new ReLibraryPlugin();