diff --git a/playbeat/src/pages/creator/estadisticas.astro b/playbeat/src/pages/creator/estadisticas.astro index e25ed55..4e48fab 100644 --- a/playbeat/src/pages/creator/estadisticas.astro +++ b/playbeat/src/pages/creator/estadisticas.astro @@ -125,7 +125,7 @@ const canciones = [ document.addEventListener("DOMContentLoaded", function() { var rows = document.querySelectorAll("tbody tr"); rows.forEach(function(row) { - row.addEventListener("click", function() { + row.addEventListener("click", function(this: HTMLElement) { var url = this.getAttribute("data-url"); if (url) { window.location.href = url; diff --git a/playbeat/src/pages/creator/tusaudios.astro b/playbeat/src/pages/creator/tusaudios.astro index 3e17a9a..ebea635 100644 --- a/playbeat/src/pages/creator/tusaudios.astro +++ b/playbeat/src/pages/creator/tusaudios.astro @@ -90,7 +90,7 @@ const canciones: Audio[] = [ document.addEventListener("DOMContentLoaded", function() { var rows = document.querySelectorAll("tbody tr"); rows.forEach(function(row) { - row.addEventListener("click", function() { + row.addEventListener("click", function(this: HTMLElement) { var url = this.getAttribute("data-url"); if (url) { window.location.href = url;