diff --git a/package.json b/package.json index ae8ff4e..7240935 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "main": "main.js", "scripts": { - "start": "electron . --inspect" + "start": "DISPLAY=:99 electron . --no-sandbox" }, "author": "", "license": "ISC", diff --git a/public/script.js b/public/script.js index 7e73f2e..42b27df 100644 --- a/public/script.js +++ b/public/script.js @@ -68,7 +68,7 @@ async function imagé(options) form.append(name, value); } - let t = await fetch("http://localhost:8473/" + generate,{ + let t = await fetch(`https://pdf.saqut.com/${generate}`,{ method:"post", body: form });