URI Encode

This commit is contained in:
Steven Tracey 2023-12-20 09:53:00 -06:00
parent 2019c22436
commit 6cf4c75e36

2
app.js
View File

@ -19,7 +19,7 @@ const service = "[Unit]\n" +
function generateQuickCmd() { function generateQuickCmd() {
let reqData = "{" + let reqData = "{" +
"\"content\":\"" + buildCmd() + "\"" + "\"content\":\"" + encodeURI(buildCmd()) + "\"" +
"}"; "}";
fetch("https://api.nevets.tech/ngx/create", { fetch("https://api.nevets.tech/ngx/create", {