mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 08:15:41 -08:00
Make every URL the console page uses page-relative, guarded by a source test
AI Assisted
This commit is contained in:
1 parent
4ced32be5c
commit
1d007737b1
47 files changed
+401
-202
No files matched your search
@@ -144,7 +144,7 @@ async function sendGit(op, fields = {}, wording = {}) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const res = await fetch("/submit", {
|
||||
const res = await fetch("submit", {
|
||||
method: "POST",
|
||||
headers: { "content-type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
@@ -281,7 +281,7 @@ function gitTabKeys(e) {
|
||||
// the action that follows has the agent re-read, which rebuilds the link.
|
||||
async function pickPrHost(host, kind) {
|
||||
if (gitLocked()) return;
|
||||
const res = await postJson("/pr-host", { host, kind });
|
||||
const res = await postJson("pr-host", { host, kind });
|
||||
if (res.status !== 200) {
|
||||
hooks.banner("That could not be saved. Try again in a moment.", "warn");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user