diff options
| author | Mhykol <mchaeldonald62@pm.me> | 2024-07-18 02:18:58 -0400 |
|---|---|---|
| committer | Mhykol <mchaeldonald62@pm.me> | 2024-07-18 02:18:58 -0400 |
| commit | b2fbe215bcbd7d6fe82204fb30dc5b49420e4597 (patch) | |
| tree | 7a9b706ed570756684a747ff35a78911c4fe7a35 /app.js | |
| parent | 145e3e149a919a48856747bd0ca235805e4ec978 (diff) | |
Fixed meta tags for non async functions
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |
