Skip to content

Commit

Permalink
AsuraScans | Fix Manga Share Button
Browse files Browse the repository at this point in the history
  • Loading branch information
Seyden committed Jul 24, 2024
1 parent 1295928 commit 6bc52df
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/AsuraScans/AsuraScans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -253,17 +253,13 @@ export class AsuraScans implements ChapterProviding, HomePageSectionsProviding,
await this.stateManager.store(`${mangaId}:slug`, link)
}

async getMangaUrl(mangaId: string): Promise<string> {
// @ts-ignore
async getMangaShareUrl(mangaId: string): Promise<string> {
const slug = await this.getMangaSlug(mangaId)
return `${this.finalUrl}/${slug}`
}

getMangaShareUrl(mangaId: string): string {
// Not implemented because async
return ""
}

getMangaData = async (mangaId: string): Promise<string> => await this.loadRequestData(await this.getMangaUrl(mangaId))
getMangaData = async (mangaId: string): Promise<string> => await this.loadRequestData(await this.getMangaShareUrl(mangaId))

async getMangaDetails(mangaId: string): Promise<SourceManga> {
await this.getAndSetBaseUrl()
Expand Down

0 comments on commit 6bc52df

Please sign in to comment.