1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-29 07:18:52 +09:00
This commit is contained in:
syuilo 2018-10-13 01:33:00 +09:00
parent b1655740df
commit 0ff27f65b3
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
};

View File

@ -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();
};