mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Use Utils.readXml
This commit is contained in:
parent
aa7e137612
commit
09eb582b57
1 changed files with 1 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue