fix: script module con top-level await para S7785
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<script type="module">
|
||||
async function loadReviews() {
|
||||
try {
|
||||
const response = await fetch("{% url 'product_reviews' product.id %}");
|
||||
@@ -157,6 +157,6 @@ async function loadReviews() {
|
||||
}
|
||||
}
|
||||
|
||||
(async () => { await loadReviews(); })();
|
||||
await loadReviews();
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user