Commit 022606be authored by nanahira's avatar nanahira

json

parent 465a523d
Pipeline #16066 passed with stages
in 7 minutes and 5 seconds
......@@ -72,7 +72,7 @@ export class LoginService {
} else {
window.ygopro.updateUser(this.user.username, this.user.avatar_url, this.user.email);
}*/
window.ygopro.loginUser(this.user, '');
window.ygopro.loginUser(JSON.stringify(this.user), '');
} catch (error) {
console.error(error);
}
......
......@@ -16,7 +16,7 @@ interface Window {
backHome(): void;
share(text: string): void
updateUser(name: string, avatar: string, status: string): void;
loginUser(user: any, exception: string): void;
loginUser(user: string, exception: string): void;
readFile(path: string): string;
writeFile(path: string, data: string): string;
......
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