fix: script module con top-level await para S7785

This commit is contained in:
Chroot
2026-05-26 11:14:03 +00:00
parent 1ac17109a3
commit 09f6f800de
+2 -2
View File
@@ -94,7 +94,7 @@
</div> </div>
</div> </div>
<script> <script type="module">
async function loadReviews() { async function loadReviews() {
try { try {
const response = await fetch("{% url 'product_reviews' product.id %}"); const response = await fetch("{% url 'product_reviews' product.id %}");
@@ -157,6 +157,6 @@ async function loadReviews() {
} }
} }
(async () => { await loadReviews(); })(); await loadReviews();
</script> </script>
{% endblock %} {% endblock %}