diff --git a/experiments/modern/src/App.js b/experiments/modern/src/App.js index 5237bcf7..42d68afd 100644 --- a/experiments/modern/src/App.js +++ b/experiments/modern/src/App.js @@ -12,14 +12,7 @@ async function getSkin() { ); const blob = await resp.blob(); const zip = await JSZip.loadAsync(blob); - - const player = Utils.getCaseInsensitveFile(zip, "xml/player-elements.xml"); - const xml = await player.async("text"); - - const elementsDoc = await xml2js(xml, { - compact: false, - elementsKey: "children", - }); + const elementsDoc = await Utils.readXml(zip, "xml/player-elements.xml"); const images = {}; // TODO: Clearly more complicated than it needed to be.