mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update App.js
Google Analytics
This commit is contained in:
@@ -22,6 +22,7 @@ import CaptchaModal from './components/modals/CaptchaModal';
|
||||
import { importAll } from './components/ImageBanner';
|
||||
import preloadImages from './utils/preloadImages';
|
||||
import useError from './hooks/useError';
|
||||
import useGoogleAnalytics from './hooks/useGoogleAnalytics';
|
||||
import useInfo from './hooks/useInfo';
|
||||
import useSuccess from './hooks/useSuccess';
|
||||
import packageJson from '../package.json';
|
||||
@@ -44,6 +45,7 @@ export default function App() {
|
||||
const location = useLocation();
|
||||
const isHomeRoute = location.pathname === '/';
|
||||
const isElectron = window.electron && window.electron.isElectron;
|
||||
useGoogleAnalytics();
|
||||
|
||||
const [, setNewErrorMessage] = useError();
|
||||
const [, setNewSuccessMessage] = useSuccess();
|
||||
|
||||
Reference in New Issue
Block a user