Commit 02d676bf authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 9f70d271
{
"name": "mycard-mobile",
"version": "1.0.10",
"version": "1.0.12",
"license": "UNLISENCED",
"scripts": {
"ng": "ng",
......
......@@ -28,6 +28,7 @@ export interface Room {
arena?: string;
users?: { username: string, position: number }[];
}
export interface Options {
mode: number;
rule: number;
......@@ -203,7 +204,7 @@ export class YGOProService {
if (load_points) {
this.load_points();
}
const again = await this.dialog.open(ResultDialog, { data: last }).afterClosed();
const again = await this.dialog.open(ResultDialog, { data: last }).afterClosed().toPromise();
if (again) {
this.request_match(last.type);
}
......@@ -211,7 +212,7 @@ export class YGOProService {
}
async request_match(arena: string) {
const data = await this.dialog.open(MatchDialog, { data: arena, disableClose: true });
const data = await this.dialog.open(MatchDialog, { data: arena, disableClose: true }).afterClosed().toPromise();
if (data) {
this.join(data['password'], { address: data['address'], port: data['port'] });
}
......@@ -268,7 +269,7 @@ export class YGOProService {
}
let password = options_buffer.toString('base64') + (room.private ? host_password :
room.title!.replace(/\s/, String.fromCharCode(0xFEFF)));
room.title!.replace(/\s/, String.fromCharCode(0xFEFF)));
// let room_id = crypto.createHash('md5').update(password + this.loginService.user.username).digest('base64')
// .slice(0, 10).replace('+', '-').replace('/', '_');
......
......@@ -38,9 +38,10 @@
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** Evergreen browsers require these. **/
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
// import 'core-js/es6/reflect';
// import 'core-js/es7/reflect';
import 'core-js/shim'
/**
* Required to support Web Animations `@angular/animation`.
......
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