Added some things :-)
This commit is contained in:
parent
bd96d0c7fa
commit
dccd2fd2ae
1 changed files with 0 additions and 21 deletions
|
@ -15,27 +15,6 @@ import PrivateRoute from "./auth/PrivateRoute";
|
||||||
import Behavior from "./components/pages/Behavior";
|
import Behavior from "./components/pages/Behavior";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
let logger = new Logger({
|
|
||||||
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
|
||||||
inputs: ["keyboard"],
|
|
||||||
logToConsole: true,
|
|
||||||
});
|
|
||||||
logger.init();
|
|
||||||
|
|
||||||
let [isLoggedIn] = useAuth();
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
document.title = `${isLoggedIn}`;
|
|
||||||
console.log(isLoggedIn);
|
|
||||||
if (isLoggedIn === false) {
|
|
||||||
logger.stop();
|
|
||||||
console.log("stopped logger");
|
|
||||||
} else {
|
|
||||||
logger.start();
|
|
||||||
console.log("start logger");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Router>
|
<Router>
|
||||||
|
|
Loading…
Reference in a new issue