web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit bb4b1e9bef526b831cc9742b9546ec855c3a10ca
parent e4e158b840ff738a8ce2662ae38f26d4654487d5
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Mon,  9 Dec 2024 07:03:39 +0000

client: fix geolocation position parse method adding nullish coalescing operator

Diffstat:
Mclient/src/geolocation/tauri.ts | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/client/src/geolocation/tauri.ts b/client/src/geolocation/tauri.ts @@ -14,9 +14,9 @@ export class TauriClientGeolocation implements IClientGeolocation { const position: IClientGeolocationPosition = { lat: parse_location_coords(pos_coords.latitude), lng: parse_location_coords(pos_coords.longitude), - accuracy: pos_coords.accuracy || undefined, - altitude: pos_coords.altitude || undefined, - altitude_accuracy: pos_coords.altitudeAccuracy || undefined + accuracy: pos_coords.accuracy ?? undefined, + altitude: pos_coords.altitude ?? undefined, + altitude_accuracy: pos_coords.altitudeAccuracy ?? undefined }; return position; }