Skip to content

Commit b3013f9

Browse files
authored
fix(flaws): shared assets images must no be flaws (#12133)
1 parent cff300f commit b3013f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: build/check-images.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ export function checkImageReferences(
133133
// might be something like `screenshot.png` for the sake of rendering
134134
// it now, we still want the full relative URL.
135135
img.attr("src", absoluteURL.pathname);
136-
} else {
136+
} else if (
137+
absoluteURL.hostname !== "mdn.github.io" ||
138+
!absoluteURL.pathname.startsWith("/shared-assets/")
139+
) {
137140
addImageFlaw(img, src, {
138141
explanation: "External image URL",
139142
externalImage: true,

0 commit comments

Comments
 (0)