mirror of https://github.com/zer0bin-dev/zer0bin
url.txt
This commit is contained in:
parent
63ef04c3cd
commit
4038d3807e
|
@ -3,6 +3,7 @@
|
|||
**/dist/
|
||||
**/.parcel-cache/
|
||||
config.json
|
||||
**/url.txt
|
||||
**/yarn.lock
|
||||
**/package-lock.json
|
||||
**/yarn-error.log
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue