Skip to content

Commit 80e0cd3

Browse files
committed
Small refactoring
1 parent 53e531a commit 80e0cd3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/firefox.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,7 @@ def process_command(self, command):
982982
parts = command['target'].split(',')
983983
lat = float(parts[0])
984984
lng = float(parts[1])
985-
location_uri = 'data:application/json,{{'\
986-
'"status":"OK","accuracy":{2:d},'\
987-
'"location":{{"lat":{0:f},"lng":{1:f}}}'\
988-
'}}'.format(lat, lng, accuracy)
985+
location_uri = _get_location_uri(accuracy, lat, lng)
989986
logging.debug('Setting location: %s', location_uri)
990987
self.set_pref('geo.wifi.uri', location_uri)
991988
except Exception:

0 commit comments

Comments
 (0)