fix: script module con top-level await para S7785
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user