mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
[+] Cloudflare security addon
This commit is contained in:
parent
54a12900bb
commit
26dfc24760
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user