diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-03 20:26:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-03 20:26:46 +0900 |
| commit | c222b9ae9467a18f0f9a2ee0146ae0e03971d531 (patch) | |
| tree | d350cb1b21b2fdee15deacd714bc78527d81fde2 /src | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-c222b9ae9467a18f0f9a2ee0146ae0e03971d531.tar.gz misskey-c222b9ae9467a18f0f9a2ee0146ae0e03971d531.tar.bz2 misskey-c222b9ae9467a18f0f9a2ee0146ae0e03971d531.zip | |
Update init.ts
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/init.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/init.ts b/src/client/app/init.ts index ae6e2f48ba..c9bcd56855 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -458,8 +458,8 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void, return x; }, dialog(opts) { + const vm = this.new(Dialog, opts); return new Promise((res) => { - const vm = this.new(Dialog, opts); vm.$once('ok', result => res({ canceled: false, result })); vm.$once('cancel', () => res({ canceled: true })); }); |