Fixed an issue where Medal clips wouldn't load

This commit is contained in:
awex
2021-06-09 10:18:30 -04:00
parent 209d3ebbbd
commit 139e2f1122
2 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -2,13 +2,11 @@
// Fetch Script for Awex Clips //
// Medal.tv API //
///////////////////////////////////
async function medalclips() {
const medalapi = 'https://developers.medal.tv/v1/latest?userId=215577&limit=1'
async function loadClip() {
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
+1 -1
View File
@@ -23,7 +23,7 @@
<meta content="https://awexxx.xyz/assets/img/logo.png" property="og:image">
<meta content="#9c2d1c" data-react-helmet="true" name="theme-color">
</head>
<body onload="checkparam()" onload="checkparam()">
<body onload="medalclips()">
<div id="rc_logo">
<a href="#" title="Logo">AWEX</a>
</div>