From 62d9ca8b644d038cf1fac54e080f79c3f0f5174e Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Tue, 19 Dec 2023 09:47:24 -0600 Subject: [PATCH] Fix json --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";