fix log color
This commit is contained in:
parent
49d73b92d3
commit
53106b33bc
File diff suppressed because it is too large
Load Diff
@ -74,14 +74,10 @@ export class loginClass {
|
||||
friends: null,
|
||||
blocked: null,
|
||||
photo: null,
|
||||
sessionNumber: 1,
|
||||
sessionNumber: 0,
|
||||
};
|
||||
await this.usersService.create(user);
|
||||
}
|
||||
// if (user.status !== 2) //super
|
||||
// user.status = 1;
|
||||
// user.sessionNumber++;
|
||||
console.log(user.sessionNumber);
|
||||
const myJSON = JSON.stringify(user);
|
||||
console.log(`in login42 user= ${myJSON}`)
|
||||
|
||||
|
||||
@ -36,18 +36,7 @@ function AnimatedRoute() {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
window.addEventListener('beforeunload', handleBeforeUnload);
|
||||
return () => {
|
||||
window.removeEventListener('beforeunload', handleBeforeUnload);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
const handleLoad = async () => {
|
||||
console.log('Page loaded');
|
||||
console.log("je suis a addSession");
|
||||
if (!localStorage.getItem('token'))
|
||||
return;
|
||||
try {
|
||||
@ -57,9 +46,10 @@ function AnimatedRoute() {
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener('load', handleLoad);
|
||||
handleLoad();
|
||||
window.addEventListener('beforeunload', handleBeforeUnload);
|
||||
return () => {
|
||||
window.removeEventListener('load', handleLoad);
|
||||
window.removeEventListener('beforeunload', handleBeforeUnload);
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user