Apply suggestions from code review
authorMarcel Werk <burntime@woltlab.com>
Mon, 9 Jan 2023 12:21:58 +0000 (13:21 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 12:21:58 +0000 (13:21 +0100)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
docs/javascript/components_google_maps.md

index f3074c0140b87a166ceba62208bd976a2b28f5b5..88ec0c32a7641da133553fda12566c484c5a72bf 100644 (file)
@@ -63,7 +63,7 @@ Adds a marker to the map.
 ```html
 <script data-relocate="true">
        require(['WoltLabSuite/Core/Component/GoogleMaps/Marker'], ({ addMarker }) => {
-               addMarker(document.getElementById('map_id'), 52.4505, 13.7546, 'Title', true);
+               void addMarker(document.getElementById('map_id'), 52.4505, 13.7546, 'Title', true);
        });
 </script>
 ```
@@ -101,7 +101,7 @@ Adds a draggable marker to the map.
 ```html
 <script data-relocate="true">
        require(['WoltLabSuite/Core/Component/GoogleMaps/Marker'], ({ addDraggableMarker }) => {
-               addDraggableMarker(document.getElementById('map_id'), 52.4505, 13.7546);
+               void addDraggableMarker(document.getElementById('map_id'), 52.4505, 13.7546);
        });
 </script>
 ```