q
This commit is contained in:
parent
810ad6f5cb
commit
de7c6c32bd
123 changed files with 13201 additions and 6213 deletions
|
|
@ -209,7 +209,7 @@ if (launchBrowser) {
|
|||
const server = createServer(async (request, response) => {
|
||||
try {
|
||||
const url = new URL(request.url || "/", "http://127.0.0.1");
|
||||
const relative = decodeURIComponent(url.pathname === "/" ? "/tests/additional-generation-e2e.html" : url.pathname);
|
||||
const relative = decodeURIComponent(url.pathname === "/" ? "/index.html" : url.pathname);
|
||||
const file = resolve(workspace, `.${relative}`);
|
||||
if (file !== workspace && !file.startsWith(`${workspace}${sep}`)) throw new Error("Path outside workspace");
|
||||
const bytes = await readFile(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue