Commit f79422ce authored by nanahira's avatar nanahira

always loginUser

parent 147d139f
Pipeline #16064 passed with stages
in 7 minutes and 14 seconds
......@@ -67,11 +67,17 @@ export class LoginService {
localStorage.setItem('login', token);
if (window.ygopro) {
try {
if(isNewLogin && window.ygopro.loginUser) {
/*if(isNewLogin && window.ygopro.loginUser) {
window.ygopro.loginUser(this.user, null);
} else {
window.ygopro.updateUser(this.user.username, this.user.avatar_url, this.user.email);
}*/
window.ygopro.loginUser(this.user, null);
} catch (error) {
console.error(error);
}
try {
window.ygopro.updateUser(this.user.username, this.user.avatar_url, this.user.email);
} catch (error) {
console.error(error);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment