diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 9b11af7..0fadf77 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,7 +1,15 @@ import Head from 'next/head' +import { useLayoutEffect } from 'react' import { Game } from '@/components' const HomePage = () => { + + useLayoutEffect(() => { + // @ts-expect-error + const crazysdk = window.CrazyGames.CrazySDK.getInstance() + crazysdk.init() + }, []) + return ( <>
@@ -9,6 +17,8 @@ const HomePage = () => { + {/* eslint-disable-next-line @next/next/no-sync-scripts */} +