diff --git a/Makefile b/Makefile index 48f82c41..4b67be7d 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ facr-production-build: clean prod: production-build rsync -zavP build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/wwwroot/ rsync -zavP build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/wwwroot/ + rsync -zavP build/ -e 'ssh -p 666' ott@bkup.instat.tv:/usr/local/www/ott/wwwroot/ preprod: preproduction-build rsync -zavP build/ -e 'ssh -p 666' ott-test@test.instat.tv:/usr/local/www/ott-test/wwwroot/ diff --git a/src/hooks/usePageLogger.tsx b/src/hooks/usePageLogger.tsx index fd87bb39..a45a539b 100644 --- a/src/hooks/usePageLogger.tsx +++ b/src/hooks/usePageLogger.tsx @@ -3,14 +3,12 @@ import { useEffect, useCallback, } from 'react' +import { useLocation } from 'react-router' import round from 'lodash/round' import { LogActions, logUserAction } from 'requests/logUserAction' -import { useEventListener } from 'hooks' -import { useLocation } from 'react-router' - export const usePageLogger = (page?: string) => { const location = useLocation() const startTimeRef = useRef(new Date()) @@ -42,9 +40,4 @@ export const usePageLogger = (page?: string) => { log, resetTime, ]) - - useEventListener({ - callback: log, - event: 'beforeunload', - }) }