mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Improve readability
This commit is contained in:
parent
5e8557a1e2
commit
dc41a49777
@ -11,10 +11,12 @@ module.exports = me => {
|
|||||||
openPostForm: opts => {
|
openPostForm: opts => {
|
||||||
const app = document.getElementById('app');
|
const app = document.getElementById('app');
|
||||||
app.style.display = 'none';
|
app.style.display = 'none';
|
||||||
const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0];
|
|
||||||
function recover() {
|
function recover() {
|
||||||
app.style.display = 'block';
|
app.style.display = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0];
|
||||||
form
|
form
|
||||||
.on('cancel', recover)
|
.on('cancel', recover)
|
||||||
.on('post', recover);
|
.on('post', recover);
|
||||||
|
Loading…
Reference in New Issue
Block a user