diff --git a/assets/js/medalclips.js b/assets/js/medalclips.js index 5213704..9c28d20 100644 --- a/assets/js/medalclips.js +++ b/assets/js/medalclips.js @@ -2,15 +2,13 @@ // Fetch Script for Awex Clips // // Medal.tv API // /////////////////////////////////// - -const medalapi = 'https://developers.medal.tv/v1/latest?userId=215577&limit=1' - - async function loadClip() { + async function medalclips() { + const medalapi = 'https://developers.medal.tv/v1/latest?userId=215577&limit=1' const { contentObjects } = await fetch(medalapi, { method: 'GET', - headers: { 'Authorization': 'pub_x9mjeQnqk07tEK1ge7w2xHYxTpTEbKwN', 'Content-Type': 'application/json' } + headers: { 'Authorization': 'pub_94FdmA2SMLm6V53dDykcPB3v4HLak6Db', 'Content-Type': 'application/json' } }).then(response => response.json()) document.querySelector("#clip").innerHTML = contentObjects[0].embedIframeCode document.querySelector("#title").innerHTML = "" + contentObjects[0].contentTitle + "" - } \ No newline at end of file + } \ No newline at end of file diff --git a/index.html b/index.html index 91c7b10..5861777 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - +