From 26dfc24760a19c12884df19347180c79b89a96ee Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Thu, 27 Jun 2024 05:16:29 +0100 Subject: [PATCH] [+] Cloudflare security addon --- src/App.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.jsx b/src/App.jsx index f48abd1..c5596ed 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -20,6 +20,14 @@ const App = () => { const [loading, setLoading] = useState(true); 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) => { setUser(user); setLoading(false);