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

fix

parent 9f70d271
{ {
"name": "mycard-mobile", "name": "mycard-mobile",
"version": "1.0.10", "version": "1.0.12",
"license": "UNLISENCED", "license": "UNLISENCED",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
......
...@@ -28,6 +28,7 @@ export interface Room { ...@@ -28,6 +28,7 @@ export interface Room {
arena?: string; arena?: string;
users?: { username: string, position: number }[]; users?: { username: string, position: number }[];
} }
export interface Options { export interface Options {
mode: number; mode: number;
rule: number; rule: number;
...@@ -203,7 +204,7 @@ export class YGOProService { ...@@ -203,7 +204,7 @@ export class YGOProService {
if (load_points) { if (load_points) {
this.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) { if (again) {
this.request_match(last.type); this.request_match(last.type);
} }
...@@ -211,7 +212,7 @@ export class YGOProService { ...@@ -211,7 +212,7 @@ export class YGOProService {
} }
async request_match(arena: string) { 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) { if (data) {
this.join(data['password'], { address: data['address'], port: data['port'] }); this.join(data['password'], { address: data['address'], port: data['port'] });
} }
......
...@@ -38,9 +38,10 @@ ...@@ -38,9 +38,10 @@
// import 'classlist.js'; // Run `npm install --save classlist.js`. // import 'classlist.js'; // Run `npm install --save classlist.js`.
/** Evergreen browsers require these. **/ /** Evergreen browsers require these. **/
import 'core-js/es6/reflect'; // import 'core-js/es6/reflect';
import 'core-js/es7/reflect'; // import 'core-js/es7/reflect';
import 'core-js/shim'
/** /**
* Required to support Web Animations `@angular/animation`. * 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