From 6bc52dfc7583a28ba3c4a5cf1674888009ff6dcb Mon Sep 17 00:00:00 2001 From: Seyden Date: Wed, 24 Jul 2024 12:50:37 +0200 Subject: [PATCH] AsuraScans | Fix Manga Share Button --- src/AsuraScans/AsuraScans.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/AsuraScans/AsuraScans.ts b/src/AsuraScans/AsuraScans.ts index 7295c2a..29cd76c 100644 --- a/src/AsuraScans/AsuraScans.ts +++ b/src/AsuraScans/AsuraScans.ts @@ -49,7 +49,7 @@ const ASURASCANS_DOMAIN = 'https://asuracomic.net' const ASURASCANS_API_DOMAIN = 'https://gg.asuracomic.net' export const AsuraScansInfo: SourceInfo = { - version: '4.0.3', + version: '4.0.4', name: 'AsuraScans', description: 'Extension that pulls manga from AsuraScans', author: 'Seyden', @@ -253,17 +253,13 @@ export class AsuraScans implements ChapterProviding, HomePageSectionsProviding, await this.stateManager.store(`${mangaId}:slug`, link) } - async getMangaUrl(mangaId: string): Promise { + // @ts-ignore + async getMangaShareUrl(mangaId: string): Promise { const slug = await this.getMangaSlug(mangaId) return `${this.finalUrl}/${slug}` } - getMangaShareUrl(mangaId: string): string { - // Not implemented because async - return "" - } - - getMangaData = async (mangaId: string): Promise => await this.loadRequestData(await this.getMangaUrl(mangaId)) + getMangaData = async (mangaId: string): Promise => await this.loadRequestData(await this.getMangaShareUrl(mangaId)) async getMangaDetails(mangaId: string): Promise { await this.getAndSetBaseUrl()