musicthread test pulls direct from musicthread

This commit is contained in:
John Bowdre 2024-05-01 21:40:25 -05:00
parent f8eb2f1bc2
commit e0d7f81664

View file

@ -7,7 +7,7 @@
<script> <script>
// retrieves latest link from a musicthread thread and displays it on the page // retrieves latest link from a musicthread thread and displays it on the page
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
const musicthread = "https://jbowdre.paste.lol/musicthread.json/raw"; const musicthread = "https://musicthread.app/api/v0/thread/2aVjZUocjk96LELFbV5JvJjm14v";
const nowPlayingElement = document.getElementById("now-playing"); const nowPlayingElement = document.getElementById("now-playing");
if (nowPlayingElement) { if (nowPlayingElement) {
fetch(musicthread) fetch(musicthread)