summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-13 01:33:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-13 01:33:00 +0900
commit0ff27f65b33a7cb2785dc1fd4f8b41abbc98a95d (patch)
tree45739cbb528185dc992a216f6398afdf971ff6f8 /src/client/app/desktop/api
parentImprove perforance (diff)
downloadsharkey-0ff27f65b33a7cb2785dc1fd4f8b41abbc98a95d.tar.gz
sharkey-0ff27f65b33a7cb2785dc1fd4f8b41abbc98a95d.tar.bz2
sharkey-0ff27f65b33a7cb2785dc1fd4f8b41abbc98a95d.zip
Fix bug
Diffstat (limited to 'src/client/app/desktop/api')
-rw-r--r--src/client/app/desktop/api/post.ts4
1 files changed, 2 insertions, 2 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);
}
};