Skip to content

Commit

Permalink
fix: Adds a conditional to the callback parameter, so it can be omitt…
Browse files Browse the repository at this point in the history
…ed if necessary. (#1735)

Change-Id: I0c2bbd3be381a521fd92f7e46470177b487f9088
  • Loading branch information
willum070 committed May 16, 2024
1 parent 0473f8f commit fc24c41
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion samples/web-components-map/web-components-map.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"title": "Add a Map using HTML",
"callback": "initMap",
"libraries": [],
"version": "beta",
"tag": "web_components_map",
Expand Down
1 change: 0 additions & 1 deletion samples/web-components-markers/web-components-markers.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"title": "Add a Map with Markers using HTML",
"callback": "initMap",
"libraries": ["marker"],
"version": "beta",
"tag": "web_components_markers",
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
for more information.
-->
<script
src="https://maps.googleapis.com/maps/api/js?key={{GOOGLE_MAPS_API_KEY}}&callback={{ callback }}{% if libraries|length %}&libraries={{ libraries }}{% endif %}&v={{ version }}{% if language %}&language={{ language }}{% endif %}{% if region %}&region={{ region }}{% endif %}" defer></script>
src="https://maps.googleapis.com/maps/api/js?key={{GOOGLE_MAPS_API_KEY}}{% if callback %}&callback={{ callback }}{% endif %}{% if libraries|length %}&libraries={{ libraries }}{% endif %}&v={{ version }}{% if language %}&language={{ language }}{% endif %}{% if region %}&region={{ region }}{% endif %}" defer></script>
{% endif -%}
{% endblock %}
</body>
Expand Down

0 comments on commit fc24c41

Please sign in to comment.