fix(training): keep the driver's page self-contained so it loads through the club router (1.87.1)

This commit is contained in:
larssand committed 2026-11-09 23:06:26 +01:00
1 parent 0caf50254a
commit ee290a4ab8
6 files changed
+122 -7

No files matched your search

+1 -2
View File
@@ -3,8 +3,7 @@ import assert from "node:assert/strict";
import fs from "node:fs";
import vm from "node:vm";
// The page is an ES module; drop its imports to run it as a plain script (rendering is stubbed below).
const source = fs.readFileSync(new URL("../src/public_training.js", import.meta.url), "utf8").replace(/^import .*$/gm, "");
const source = fs.readFileSync(new URL("../src/public_training.js", import.meta.url), "utf8");
function profileHarness() {
const ui = { editing: false, saving: false, requests: 0, renders: 0, html: "existing profile" };