Skip to content

Commit

Permalink
Merge pull request #544 from prey/Fix-panel-mac-native-accuracy-location
Browse files Browse the repository at this point in the history
Fix panel mac native accuracy location
  • Loading branch information
javo authored Jan 26, 2022
2 parents fa9a1b0 + e927478 commit ea058bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/agent/providers/geo/darwin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ exports.get_location = function(cb) {
let response;
try {
response = JSON.parse(data);
if(response.hasOwnProperty('accuracy'))
response.accuracy = parseFloat(response.accuracy).toFixed(6);
return cb(null, response)
} catch (err) {
return cb(new Error(err.message))
Expand Down

0 comments on commit ea058bb

Please sign in to comment.