15 lines
290 B
JavaScript
Raw Normal View History

2025-02-11 23:04:28 +01:00
const api = new API(API_URL);
const root = document.getElementById("root");
async function init() {
let query = new URLSearchParams(document.location.search);
let video = await api.getVideo(query.get("id"));
root.appendChild(components.player(video));
finishedLoading();
2025-02-11 23:04:28 +01:00
}
init();