summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-10 19:01:53 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-10 19:01:53 +0200
commitc22fe86c46299f13f44180ce2b652f57d5a4e794 (patch)
treeaba0fdd452ffb488cdaf4abe2cfc87ee10fe6e94 /src/Server.ts
parent:wheelchair: use fs sync for backwards compatibility (diff)
downloadserver-c22fe86c46299f13f44180ce2b652f57d5a4e794.tar.xz
:sparkles: bundle exectuable
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index 1a814f10..a1b51d21 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -105,7 +105,7 @@ export class FosscordServer extends Server { app.use("/api/v9", prefix); this.app = app; this.app.use(ErrorHandler); - const indexHTML = await fs.readFile(path.join(__dirname, "..", "client_test", "index.html"), { encoding: "utf8" }); + const indexHTML = fs.readFileSync(path.join(__dirname, "..", "client_test", "index.html"), { encoding: "utf8" }); this.app.use("/assets", express.static(path.join(__dirname, "..", "assets")));