Skip to content

Commit 5f95ef4

Browse files
astro-leaflet/Tutorial02Mobile.astro: log instead of alert when locate cannot be performed
Signed-off-by: Pascal Brand <pascal.brand38@gmail.com>
1 parent daf879a commit 5f95ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/packages/astro-leaflet/Tutorial02Mobile.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
map.on('locationfound', onLocationFound);
3838

3939
function onLocationError(e:any) {
40-
alert(e.message);
40+
console.log(e.message);
4141
}
4242
map.on('locationerror', onLocationError);
4343
}

0 commit comments

Comments
 (0)