diff --git a/global.d.ts b/global.d.ts index 28448d8..658d641 100644 --- a/global.d.ts +++ b/global.d.ts @@ -19,6 +19,5 @@ declare namespace NodeJS { enableServices: () => void; }; } - function linkvertise(id: number, options: { whitelist: string[]; blacklist: string[] }): void; } export {}; \ No newline at end of file diff --git a/src/app/early/page.tsx b/src/app/early/page.tsx index 33726dd..1a4d7f0 100644 --- a/src/app/early/page.tsx +++ b/src/app/early/page.tsx @@ -1,6 +1,6 @@ import { fetchEarlyRelease } from "@/lib/api"; import { Chapter } from "@/lib/types"; -import { encodeId } from "@/lib/utils"; +import { encodeId, linkvertise } from "@/lib/utils"; import { Ad } from "@/lib/types"; export type searchParams = Promise<{ bookId: string }>; @@ -67,7 +67,7 @@ export default async function BookPage({ searchParams }: { searchParams: searchP {early_chapter_from_params &&

@@ -87,7 +87,7 @@ export default async function BookPage({ searchParams }: { searchParams: searchP {early_chapters.map((chapter) => (
  • diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c9da5e1..33faaa0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -88,15 +88,6 @@ export default function RootLayout({ children }: { children: React.ReactNode }) }); }} /> -