mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
final
This commit is contained in:
parent
18b9094d5b
commit
c57b96c48f
@ -628,9 +628,8 @@ if (window.location.pathname === '/settings/') {
|
|||||||
} else if (window.location.pathname === '/updates/') {
|
} else if (window.location.pathname === '/updates/') {
|
||||||
document.addEventListener('DOMContentLoaded', async () => {
|
document.addEventListener('DOMContentLoaded', async () => {
|
||||||
const updatesContainer = document.querySelector('.updates-container');
|
const updatesContainer = document.querySelector('.updates-container');
|
||||||
const data: { version: string; changelog: string[] }[] = (
|
const data: { version: string; changelog: string[] }[] = (await (await fetch('/resources/data/main.json')).json())
|
||||||
await (await fetch('/resources/data/main.json')).json()
|
.updates;
|
||||||
).updates;
|
|
||||||
data.forEach((update) => {
|
data.forEach((update) => {
|
||||||
const version = document.createElement('div');
|
const version = document.createElement('div');
|
||||||
const name = document.createElement('strong');
|
const name = document.createElement('strong');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user