clean up
This commit is contained in:
parent
4d22797624
commit
4a7166625f
|
@ -527,8 +527,7 @@ router.get('/streaming', async ctx => {
|
||||||
router.get('(.*)', async ctx => {
|
router.get('(.*)', async ctx => {
|
||||||
const meta = await fetchMeta();
|
const meta = await fetchMeta();
|
||||||
let motd = ['Loading...'];
|
let motd = ['Loading...'];
|
||||||
// Check if meta.MOTD exists and is at least 1 in length
|
if (meta.customMOTD.length > 0) {
|
||||||
if (meta.customMOTD && meta.customMOTD.length > 0) {
|
|
||||||
motd = meta.customMOTD;
|
motd = meta.customMOTD;
|
||||||
}
|
}
|
||||||
await ctx.render('base', {
|
await ctx.render('base', {
|
||||||
|
|
Loading…
Reference in New Issue