Update index.svelte

This commit is contained in:
2020-10-01 21:42:15 +02:00
committed by GitHub
parent 17d344d3ba
commit 2a6de8a9fc

View File

@@ -4,12 +4,12 @@
<script>
let player;
import { onMount } from "svelte";
import { onMount, createEventDispatcher } from "svelte";
let divId = "player_" + parseInt(Math.random() * 100000).toString();
export let videoId;
export let height = "390";
export let width = "640";
const dispatch = createEventDispatcher()
onMount(() => {
let ytTagUrl = "https://www.youtube.com/iframe_api";
if (!isMyScriptLoaded(ytTagUrl)) {