From da2b8813c26d43cb7380e6c79a67f325518fa869 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 13 Mar 2021 02:00:32 -0800 Subject: [PATCH] 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. --- src/app/components/HTML5Badge.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/components/HTML5Badge.js b/src/app/components/HTML5Badge.js index 60e838e..3b7909e 100644 --- a/src/app/components/HTML5Badge.js +++ b/src/app/components/HTML5Badge.js @@ -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;