mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
parent
fb614d403b
commit
eac0323f6b
1 changed files with 2 additions and 5 deletions
|
@ -30,11 +30,8 @@ export function rewriteUrl(url: string | URL, meta: URLMeta) {
|
|||
if (url instanceof URL) {
|
||||
url = url.href;
|
||||
}
|
||||
if (url.startsWith(location.origin)) {
|
||||
// this is jank and should be temporary!!!!
|
||||
// debugger;
|
||||
return url;
|
||||
} else if (url.startsWith("javascript:")) {
|
||||
|
||||
if (url.startsWith("javascript:")) {
|
||||
return "javascript:" + rewriteJs(url.slice("javascript:".length), meta);
|
||||
} else if (url.startsWith("blob:")) {
|
||||
return location.origin + $scramjet.config.prefix + url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue