Linkvertise addition

This commit is contained in:
Hieuhuy Pham 2025-03-12 13:52:49 -04:00
parent 01dc9c9749
commit 5082135d62
2 changed files with 12 additions and 0 deletions

3
global.d.ts vendored
View File

@ -1,3 +1,5 @@
import { link } from "fs";
declare namespace NodeJS { declare namespace NodeJS {
interface ProcessEnv { interface ProcessEnv {
NEXT_PUBLIC_API_URL: string; NEXT_PUBLIC_API_URL: string;
@ -17,5 +19,6 @@ declare namespace NodeJS {
enableServices: () => void; enableServices: () => void;
}; };
} }
function linkvertise(id: number, options: { whitelist: string[]; blacklist: string[] }): void;
} }
export {}; export {};

View File

@ -88,6 +88,15 @@ export default function RootLayout({ children }: { children: React.ReactNode })
}); });
}} }}
/> />
<Script
src="https://publisher.linkvertise.com/cdn/linkvertise.js"
strategy="afterInteractive"
onLoad={() => {
if (typeof linkvertise === "function") {
linkvertise(1318261, { whitelist: ["https://nulltranslation.com/early/"], blacklist: [] });
}
}}
/>
</head> </head>
<body className="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen"> <body className="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen">
<KofiWidget /> <KofiWidget />