mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
15 lines
318 B
TypeScript
15 lines
318 B
TypeScript
|
|
||
|
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);
|
||
|
};
|