This commit is contained in:
Kainoa Kanter 2022-03-11 20:17:38 -08:00
parent 63ef04c3cd
commit 4038d3807e
3 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
**/dist/
**/.parcel-cache/
config.json
**/url.txt
**/yarn.lock
**/package-lock.json
**/yarn-error.log

View File

@ -60,7 +60,7 @@ Backend: <a href="https://actix.rs/"><img src="https://pool.jortage.com/voringme
4. `CREATE DATABASE zer0bin;` and `\c zer0bin`
5. Paste contents of `schema.sql` and `\q`
6. `cd frontend`
7. `cp config.example.json config.json` and edit as appropriate
7. `echo 'https://example.com/api' > url.txt`
8. `npm i && npm run build`
9. `cd ../backend`
10. `cp config.example.json config.json` and edit as appropriate

View File

@ -3,9 +3,7 @@ function loadFile(filePath) {
const xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", filePath, false);
xmlhttp.send();
if (xmlhttp.status == 200) {
result = xmlhttp.responseText;
}
if (xmlhttp.status == 200) { result = xmlhttp.responseText; }
return result;
}