diff --git a/app.js b/app.js index 484a9bf..472bbbd 100644 --- a/app.js +++ b/app.js @@ -21,7 +21,7 @@ function generateQuickCmd() { fetch("https://paste.nevets.tech/api/", { method: "POST", headers: {'Content-Type': 'application/json'}, - body: "{'format':'url','content':'" + encodeURIComponent(buildCmd()) + "','expires':3600,'lexer':'bash'}", + body: "{\"format\":\"url\",\"content\":\"" + encodeURIComponent(buildCmd()) + "\",\"expires\":3600,\"lexer\":\"bash\"}", mode: "cors" }).then(res => res.json().then(json => { document.getElementById("script").innerText = "curl -s " + json.url + "/raw | bash";