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:
parent
5a74b9df8f
commit
da2b8813c2
1 changed files with 7 additions and 1 deletions
|
|
@ -133,7 +133,13 @@ export function GlitchBadgeLayout({
|
||||||
}
|
}
|
||||||
|
|
||||||
export function layerUsesHTML5(layer) {
|
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;
|
export default HTML5Badge;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue