Feat: ImageRequestInit (#979)
* add ImageRequestInit & fix Hako * remove multisrc fetchFile * remove plugins fetchFile * update docs and template file
This commit is contained in:
@@ -521,13 +521,6 @@ class Linovelib implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
const headers = new Headers({
|
||||
'Referer': `${this.site}/`,
|
||||
});
|
||||
return await fetchFile(url, { headers });
|
||||
}
|
||||
|
||||
filters = {
|
||||
rank: {
|
||||
label: '排行榜',
|
||||
|
||||
Reference in New Issue
Block a user