From de5f4790cc9b087675d6956ca99d973f2f42d264 Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:11:26 -0600 Subject: [PATCH 1/3] fix(responsive-webapp): prevent error in safari positioning --- lib/components/app/responsive-webapp.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/components/app/responsive-webapp.js b/lib/components/app/responsive-webapp.js index 2b2a44dfc..71e5238f1 100644 --- a/lib/components/app/responsive-webapp.js +++ b/lib/components/app/responsive-webapp.js @@ -180,10 +180,7 @@ class ResponsiveWebapp extends Component { navigator.geolocation.watchPosition( // On success (position) => { - // This object cloning is required to be allowed to read the position info twice - // on webkit browsers. - // See https://github.com/opentripplanner/otp-react-redux/pull/697 for details - receivedPositionResponse({ position: { ...position } }) + receivedPositionResponse({ position }) }, // On error (error) => { From 960be2d1c37070d9461cb2ddae4cdb3282e62838 Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:13:41 -0600 Subject: [PATCH 2/3] fix current location target button --- lib/components/map/default-map.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/components/map/default-map.tsx b/lib/components/map/default-map.tsx index 00a552a81..0ad76c8cc 100644 --- a/lib/components/map/default-map.tsx +++ b/lib/components/map/default-map.tsx @@ -353,6 +353,7 @@ class DefaultMap extends Component { visible /> { getCurrentPosition(intl) }} From 34d1bf6c93d9411d1f7b55206cd94c777521a7e9 Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:09:48 -0600 Subject: [PATCH 3/3] Revert "fix current location target button" This reverts commit 960be2d1c37070d9461cb2ddae4cdb3282e62838. --- lib/components/map/default-map.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/components/map/default-map.tsx b/lib/components/map/default-map.tsx index 0ad76c8cc..00a552a81 100644 --- a/lib/components/map/default-map.tsx +++ b/lib/components/map/default-map.tsx @@ -353,7 +353,6 @@ class DefaultMap extends Component { visible /> { getCurrentPosition(intl) }}