| commit | 495cb96343f76189ab7e484234d6dc1a3b5a787c | [log] [tgz] |
|---|---|---|
| author | Sean McCullough <banksean@gmail.com> | Thu May 01 16:25:53 2025 -0700 |
| committer | Sean McCullough <banksean@gmail.com> | Thu May 01 16:27:44 2025 -0700 |
| tree | c5e2ac64da4c2aa7247cf17c9d78ba39105c75d9 | |
| parent | 4d5e9978fce2feb262663b9d0455c06546723ddc [diff] [blame] |
sketch-app-shell: fetch "cancel" not "/cancel" Fixes https://github.com/boldsoftware/sketch/issues/22
diff --git a/webui/src/web-components/sketch-app-shell.ts b/webui/src/web-components/sketch-app-shell.ts index 21bbb9e..a540144 100644 --- a/webui/src/web-components/sketch-app-shell.ts +++ b/webui/src/web-components/sketch-app-shell.ts
@@ -1112,7 +1112,7 @@ ) as HTMLButtonElement; stopButton?.addEventListener("click", async () => { try { - const response = await fetch("/cancel", { + const response = await fetch("cancel", { method: "POST", headers: { "Content-Type": "application/json",