Test msq as xml
This commit is contained in:
parent
5a81764aa5
commit
e8570dc4e4
|
@ -87,7 +87,7 @@ const TopBar = () => {
|
||||||
<SubMenu title="Download" icon={<CloudDownloadOutlined />}>
|
<SubMenu title="Download" icon={<CloudDownloadOutlined />}>
|
||||||
<SubMenu title="Tune" icon={<SlidersOutlined />}>
|
<SubMenu title="Tune" icon={<SlidersOutlined />}>
|
||||||
<Menu.Item icon={<SaveOutlined />}>
|
<Menu.Item icon={<SaveOutlined />}>
|
||||||
<a href="/tunes/202103.msq" target="__blank" rel="noopener noreferrer">
|
<a href="/tunes/202103.xml" target="__blank" rel="noopener noreferrer">
|
||||||
Download
|
Download
|
||||||
</a>
|
</a>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
|
|
@ -14,7 +14,7 @@ export const loadAll = async () => {
|
||||||
const json: ConfigType = await fetch(`./tunes/${version}.json`)
|
const json: ConfigType = await fetch(`./tunes/${version}.json`)
|
||||||
.then((response) => response.json());
|
.then((response) => response.json());
|
||||||
|
|
||||||
const tune = await fetch(`./tunes/${version}.msq`)
|
const tune = await fetch(`./tunes/${version}.xml`)
|
||||||
.then((response) => response.text());
|
.then((response) => response.text());
|
||||||
|
|
||||||
const xml = (new DOMParser()).parseFromString(tune, 'text/xml');
|
const xml = (new DOMParser()).parseFromString(tune, 'text/xml');
|
||||||
|
|
Loading…
Reference in New Issue