This commit is contained in:
Steven Tracey 2023-12-19 08:44:30 -06:00
parent 4107f3b5f6
commit c1c6c16678
2 changed files with 8 additions and 1 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

3
app.js
View File

@ -21,7 +21,8 @@ function generateQuickCmd() {
fetch("https://paste.nevets.tech/api/", {
method: "POST",
headers: {'Content-Type': 'application/json'},
body: "{'format':'url','content':'" + buildCmd() + "','expires':3600,'lexer':'bash'}"
body: "{'format':'url','content':'" + buildCmd() + "','expires':3600,'lexer':'bash'}",
mode: "cors"
}).then(res => res.json().then(json => {
document.getElementById("script").innerText = "curl -s " + json.url + "/raw | bash";
}));