chore: prettier

This commit is contained in:
Percs 2024-10-13 00:51:57 -05:00
parent 70779ffe5b
commit a94f969a7b
6 changed files with 13 additions and 15 deletions

View file

@ -15,14 +15,14 @@ function tryCanParseURL(url: string, origin?: string | URL): URL | null {
export function rewriteBlob(url: string, meta: URLMeta) {
const blob = new URL(url.substring("blob:".length));
return "blob:" + meta.origin.origin + blob.pathname;
return "blob:" + meta.origin.origin + blob.pathname;
}
export function unrewriteBlob(url: string) {
const blob = new URL(url.substring("blob:".length));
return "blob:" + location.origin + blob.pathname;
return "blob:" + location.origin + blob.pathname;
}
export function rewriteUrl(url: string | URL, meta: URLMeta) {