make filepath relative

This commit is contained in:
Simon Knott 2024-11-04 10:51:56 +01:00
parent 8137494f36
commit 69ba2d1d66
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -126,7 +126,7 @@ function formatUrl(traceURL: URL) {
} }
function filePathToTraceURL(path: string) { function filePathToTraceURL(path: string) {
const url = new URL('/trace/file', location.href); const url = new URL('file', location.href);
url.searchParams.set('path', path); url.searchParams.set('path', path);
return url; return url;
} }