Skip to content

Commit

Permalink
Fix to string wrapper causing JS syntax error (#308)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ngai <[email protected]>
  • Loading branch information
kngai and Kevin Ngai authored Sep 28, 2023
1 parent 5c1f9d1 commit 66bb1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/templates/stac/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h4>{% trans %}Assets{% endtrans %}</h4>
map.addLayer(bbox_layer);
map.fitBounds(bbox_layer.getBounds(), {maxZoom: 5});
} else {
const warnAlert = '<div class="alert alert-warning mrgn-tp-md">{% trans %}Map extent preview not available{% endtrans %}</div>';
const warnAlert = `<div class="alert alert-warning mrgn-tp-md">{% trans %}Map extent preview not available{% endtrans %}</div>`;
document.getElementById('items-map').insertAdjacentHTML('afterend', warnAlert);
}
</script>
Expand Down

0 comments on commit 66bb1a3

Please sign in to comment.