Skip to content

Commit

Permalink
fix:Changes comment in layout template (#1736)
Browse files Browse the repository at this point in the history
* Changes comment in layout template

This change updates the comment in the layout template, which is visible to developers. It changes the word "callback" to "script", which helps us to avoid referencing a nonexistent callback for scenarios that don't use them.

* fix: Adds a random commit that is semantic

Forgot to put on my semantic hat again today.
  • Loading branch information
willum070 authored May 16, 2024
1 parent 037bfba commit 5c89359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/_includes/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
({key: "{{GOOGLE_MAPS_API_KEY}}"{% if libraries|length %}, libraries: {{ libraries }}{% endif %}{% if version|length %}, v: "{{ version }}"{% endif %}{% if language|length %}, language: "{{ language }}"{% endif %}{% if region|length %}, region: "{{ region }}"{% endif %}{% if solutionChannel|length %}, solutionChannel: "{{ solutionChannel }}"{% endif %}{% if authReferrerPolicy|length %}, authReferrerPolicy: "{{ authReferrerPolicy }}"{% endif %}});</script>
{% else %}
<!--
The `defer` attribute causes the callback to execute after the full HTML
The `defer` attribute causes the script to execute after the full HTML
document has been parsed. For non-blocking uses, avoiding race conditions,
and consistent behavior across browsers, consider loading using Promises.
See https://developers.google.com/maps/documentation/javascript/load-maps-js-api
and consistent behavior across browsers, consider loading using Promises. See
https://developers.google.com/maps/documentation/javascript/load-maps-js-api
for more information.
-->
<script
Expand All @@ -52,4 +52,4 @@
{% endblock %}
</body>
</html>
<!-- [END maps_{{tag}}] -->
<!-- [END maps_{{tag}}] -->

0 comments on commit 5c89359

Please sign in to comment.