From 0ff27f65b33a7cb2785dc1fd4f8b41abbc98a95d Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sat, 13 Oct 2018 01:33:00 +0900
Subject: [PATCH] Fix bug

---
 src/client/app/desktop/api/post.ts | 4 ++--
 src/client/app/mobile/api/post.ts  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/client/app/desktop/api/post.ts b/src/client/app/desktop/api/post.ts
index 77d6bc98ff..3ff9c5bb8c 100644
--- a/src/client/app/desktop/api/post.ts
+++ b/src/client/app/desktop/api/post.ts
@@ -9,14 +9,14 @@ export default (os: OS) => opts => {
 			note: o.renote,
 			animation: o.animation == null ? true : o.animation
 		});
-		if (opts.cb) vm.$once('closed', opts.cb);
+		if (o.cb) vm.$once('closed', o.cb);
 		document.body.appendChild(vm.$el);
 	} else {
 		const vm = os.new(PostFormWindow, {
 			reply: o.reply,
 			animation: o.animation == null ? true : o.animation
 		});
-		if (opts.cb) vm.$once('closed', opts.cb);
+		if (o.cb) vm.$once('closed', o.cb);
 		document.body.appendChild(vm.$el);
 	}
 };
diff --git a/src/client/app/mobile/api/post.ts b/src/client/app/mobile/api/post.ts
index 1077dc7a0d..a64ed1c43e 100644
--- a/src/client/app/mobile/api/post.ts
+++ b/src/client/app/mobile/api/post.ts
@@ -18,7 +18,7 @@ export default (os) => (opts) => {
 	}).$mount();
 	vm.$once('cancel', recover);
 	vm.$once('posted', recover);
-	if (opts.cb) vm.$once('closed', opts.cb);
+	if (o.cb) vm.$once('closed', o.cb);
 	document.body.appendChild(vm.$el);
 	(vm as any).focus();
 };