Skip to content

Commit

Permalink
Revert "fix: src starting with / is not local"
Browse files Browse the repository at this point in the history
  • Loading branch information
georges-gomes authored May 14, 2024
1 parent 6e4e7d1 commit f76bc56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export class Resource {
}

export function isLocal(src: string) {
if (src.startsWith('/')) return false;
const u = url.parse(src);
return !u.host;
}
Expand Down

0 comments on commit f76bc56

Please sign in to comment.