mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
don't rewrite blob urls
This commit is contained in:
parent
f70e2a6ff4
commit
e45e10edc7
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export function encodeUrl(url: string | URL, origin?: URL) {
|
|||
|
||||
if (url.startsWith("javascript:")) {
|
||||
return "javascript:" + rewriteJs(url.slice("javascript:".length));
|
||||
} else if (/^(#|mailto|about|data)/.test(url)) {
|
||||
} else if (/^(#|mailto|about|data|blob)/.test(url)) {
|
||||
return url;
|
||||
} else if (canParseUrl(url, origin)) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue