Skip to content

Commit

Permalink
Merge pull request #1311 from opentripplanner/fix-position-on-safari
Browse files Browse the repository at this point in the history
fix(responsive-webapp): prevent error in safari positioning
  • Loading branch information
amy-corson-ibigroup authored Dec 6, 2024
2 parents 1db2b1e + 8c3e467 commit 5caf0b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/components/app/responsive-webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,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) => {
Expand Down

0 comments on commit 5caf0b8

Please sign in to comment.