mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-27 00:56:43 -06:00
45e8331e26
Closes #12, #227 and #58
15 lines
348 B
JavaScript
15 lines
348 B
JavaScript
import * as riot from 'riot';
|
|
|
|
export default opts => {
|
|
const app = document.getElementById('app');
|
|
app.style.display = 'none';
|
|
|
|
function recover() {
|
|
app.style.display = 'block';
|
|
}
|
|
|
|
const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0];
|
|
form
|
|
.on('cancel', recover)
|
|
.on('post', recover);
|
|
};
|