Skip to content

Commit

Permalink
Revert "fix: dont double rewrite urls"
Browse files Browse the repository at this point in the history
This reverts commit 6705d0b.
  • Loading branch information
velzie committed Oct 18, 2024
1 parent fb614d4 commit eac0323
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/shared/rewriters/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eac0323

Please sign in to comment.