Update index.svelte

This commit is contained in:
2020-10-01 21:39:22 +02:00
committed by GitHub
parent 424133d04d
commit 17d344d3ba

View File

@@ -32,6 +32,10 @@
createPlayer(); createPlayer();
} }
}); });
function onPlayerStateChange({ data }) {
dispatch("StateChange", data);
}
function createPlayer() { function createPlayer() {
player = new YT.Player(divId, { player = new YT.Player(divId, {
height, height,