feat: 新增 https://fund.cc.cd/ 地址
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
'use client';
|
||||
import { useEffect, useState } from 'react';
|
||||
import Script from 'next/script';
|
||||
|
||||
export default function AnalyticsGate({ GA_ID }) {
|
||||
const [enabled, setEnabled] = useState(false);
|
||||
useEffect(() => {
|
||||
try {
|
||||
const href = window.location.href || '';
|
||||
setEnabled(href.includes('hzm0321'));
|
||||
} catch {}
|
||||
}, []);
|
||||
|
||||
if (!enabled) return null;
|
||||
if (!GA_ID) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user