• Get detailed information about a specific Comick manga.

    Parameters

    • slug: string

      The manga slug

    Returns Promise<null | ComickMangaDetail>

    Promise resolving to manga details

    export async function getComickMangaDetail(
    slug: string,
    ): Promise<ComickMangaDetail | null> {
    try {
    console.log(`📖 Getting Comick manga details for: ${slug}`);

    // Use IPC to call the main process instead of direct fetch to avoid CORS issues
    const data = (await window.electronAPI.comick.getMangaDetail(
    slug,
    )) as ComickMangaDetail;
    return data || null;
    } catch (error) {
    console.error(`❌ Failed to get Comick manga details for ${slug}:`, error);
    return null;
    }
    }