diff options
| author | JoelHMikael <joel.h.kronqvist@gmail.com> | 2021-12-06 14:06:31 +0200 | 
|---|---|---|
| committer | JoelHMikael <joel.h.kronqvist@gmail.com> | 2021-12-06 14:06:31 +0200 | 
| commit | ffef8333636fe6143aa675534f6ce7852199be20 (patch) | |
| tree | d14c6636bb82d4be1535bf1fd80aa566fc24ee49 | |
| parent | f443956978103c1de16717a34f4dca4300a2d4fb (diff) | |
| download | LYLLRuoka-ffef8333636fe6143aa675534f6ce7852199be20.tar.gz LYLLRuoka-ffef8333636fe6143aa675534f6ce7852199be20.zip  | |
Fixed a minor bug in buildMain in server.js
| -rw-r--r-- | server.js | 5 | 
1 files changed, 4 insertions, 1 deletions
@@ -72,7 +72,10 @@ function openFile(path)  async function buildMain(args)  {  	const path = args["path"]; -	const index = args["query"].index.toUpperCase().replaceAll(".", "").replaceAll(" ", ""); +	const query = args["query"]; +	let index; +	if (typeof query.index === "string") +		index = query.index.toUpperCase().replaceAll(".", "").replaceAll(" ", "");  	const shifts = args["shifts"];  	const DB = args["db"];  | 
