MetatronLatestWebsite/src/components/MetatronInitializer.tsx
2026-03-06 15:44:50 +05:30

19 lines
438 B
TypeScript

"use client";
import { useEffect } from "react";
export default function MetatronInitializer() {
useEffect(() => {
const init = () => {
if (typeof window !== "undefined" && (window as any).initMetatron && (window as any).jQuery) {
(window as any).initMetatron();
} else {
setTimeout(init, 100);
}
};
init();
}, []);
return null;
}