mirror of
https://github.com/catmpeg/catmpeg.github.io.git
synced 2026-02-20 15:50:57 +03:00
Update lastplayed.js
This commit is contained in:
parent
3801de8043
commit
06b51bbe7a
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const lastPlayedBlock = document.getElementById('last-played');
|
const lastPlayedBlock = document.getElementById('last-played');
|
||||||
|
|
||||||
fetch("https://cat.fs.tlpteam.ru:5011/?user=catmpeg")
|
fetch("http://cat.fs.tlpteam.ru:5011/?user=catmpeg")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data && data.name) {
|
if (data && data.name) {
|
||||||
|
|
@ -12,4 +12,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue