Skip to content

Commit

Permalink
Merge pull request #159 from divriots/revert-158-leadingSlashNotLocal
Browse files Browse the repository at this point in the history
fix(local): Just support Cloudflare images
  • Loading branch information
gqio authored May 14, 2024
2 parents 6e4e7d1 + 93a5319 commit b3414c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class Resource {
}

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

0 comments on commit b3414c2

Please sign in to comment.