From 9b253ccb3a122384ba3bfbdbe777b47c7a6b407c Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 12 Oct 2018 14:34:54 +0900 Subject: Refactor --- src/client/app/mobile/api/post.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/app/mobile/api') diff --git a/src/client/app/mobile/api/post.ts b/src/client/app/mobile/api/post.ts index 5c0f0af852..1077dc7a0d 100644 --- a/src/client/app/mobile/api/post.ts +++ b/src/client/app/mobile/api/post.ts @@ -18,6 +18,7 @@ export default (os) => (opts) => { }).$mount(); vm.$once('cancel', recover); vm.$once('posted', recover); + if (opts.cb) vm.$once('closed', opts.cb); document.body.appendChild(vm.$el); (vm as any).focus(); }; -- cgit v1.2.3-freya