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 --- app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index 55877a3..7e94983 100644 --- a/app.js +++ b/app.js @@ -89,11 +89,9 @@ class App { if (this.path.string.endsWith('/') && this.path.string.length > 1) this.path.string = this.path.string.substring(0, this.path.string.length - 1) if (output.has(this.path.string)) { try { - output.get(this.path.string).then(output => { - res.send(this.readfile.GetMain(output.meta)) - }) + output.get(this.path.string).then(output => res.send(this.readfile.GetMain(output.meta))) } catch { - res.send(this.readfile.GetMain(output.get(this.path.string))) + res.send(this.readfile.GetMain(output.get(this.path.string).meta)) } } else { res.sendStatus(404) -- cgit v1.2.3-70-g09d2