Oops, fix HTML5 badge for Flying in an Airplane

Oops, the HTML5Badge was using the presence of an `svgUrl` to decide if the item is converted!

Here, we add an extra condition that if the OFFICIAL_SVG_IS_INCORRECT glitch is applied, then *that* indicates HTML5 conversion, too.
This commit is contained in:
Emi Matchu 2021-03-13 02:00:32 -08:00
parent 5a74b9df8f
commit da2b8813c2

View file

@ -133,7 +133,13 @@ export function GlitchBadgeLayout({
}
export function layerUsesHTML5(layer) {
return layer.svgUrl || layer.canvasMovieLibraryUrl;
return (
layer.svgUrl ||
layer.canvasMovieLibraryUrl ||
// If this glitch is applied, then `svgUrl` will be null, but there's still
// an HTML5 manifest that the official player can render.
layer.knownGlitches.includes("OFFICIAL_SVG_IS_INCORRECT")
);
}
export default HTML5Badge;