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
@@ -86,7 +86,7 @@ function pauseSwitch(paused) {
|
||||
if (pausing) return;
|
||||
pausing = true;
|
||||
redraw();
|
||||
const { status } = await postJson("/learning/pause", { paused: !paused });
|
||||
const { status } = await postJson("learning/pause", { paused: !paused });
|
||||
pausing = false;
|
||||
if (status !== 200) {
|
||||
hooks.banner(
|
||||
@@ -567,7 +567,7 @@ async function openLessons() {
|
||||
body.replaceChildren(el("p", "md-p", "Reading…"));
|
||||
dlg.showModal();
|
||||
try {
|
||||
const res = await fetch("/learning/lessons", { cache: "no-store" });
|
||||
const res = await fetch("learning/lessons", { cache: "no-store" });
|
||||
if (res.status !== 200) throw new Error(String(res.status));
|
||||
const { files, follows } = await res.json();
|
||||
body.replaceChildren();
|
||||
|
||||
Reference in new issue
Block a user