From b2fbe215bcbd7d6fe82204fb30dc5b49420e4597 Mon Sep 17 00:00:00 2001 From: Mhykol Date: Thu, 18 Jul 2024 02:18:58 -0400 Subject: Fixed meta tags for non async functions --- source/readfile.js | 42 +++++++++++++----------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'source') diff --git a/source/readfile.js b/source/readfile.js index f93add4..9310b8c 100644 --- a/source/readfile.js +++ b/source/readfile.js @@ -32,46 +32,30 @@ class ReadFile { GetMain(x) { const data = { - header: '', - footer: ` - - - - - - - ` - } - try { - data.header = ` + header: ` - ${x.title} - - - - - - - ${this.object.layouts.loading} -
- ` - } catch { - data.header = ` - - - Undefined - - + ${x.hasOwnProperty('title') ? x.title : 'Undefined'} + + ${this.object.layouts.loading}
+ `, + footer: ` +
+ + + + + ` } + return this.#RemoveSpaces(data.header + data.footer) } async Create(x) { -- cgit v1.2.3-70-g09d2