diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app.js b/app.js index 56a1065..d07b2c8 100644 --- a/app.js +++ b/app.js @@ -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"; }));