[+] Cloudflare security addon

This commit is contained in:
Charles Le Maux 2024-06-27 05:16:29 +01:00
parent 54a12900bb
commit 26dfc24760

View File

@ -20,6 +20,14 @@ const App = () => {
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
useEffect(() => { useEffect(() => {
const script = document.createElement('script');
script.src = 'https://static.cloudflareinsights.com/beacon.min.js';
script.async = true;
script.defer = true;
script.data = JSON.stringify({
token: '5cef39a7410e4a4e8ab3dfbe163b73d0',
});
const unsubscribe = auth.onAuthStateChanged((user) => { const unsubscribe = auth.onAuthStateChanged((user) => {
setUser(user); setUser(user);
setLoading(false); setLoading(false);