Skip to content

Commit b97436e

Browse files
committed
Flip conditional
1 parent 3f7402b commit b97436e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/views/help/wifi-tools.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export const getIpAddress = (): Promise<?string> =>
1616

1717
export const getPosition = (args: any = {}): Promise<Object> =>
1818
new Promise((resolve, reject) => {
19-
if (Platform.OS === 'ios') {
19+
if (Platform.OS === 'android') {
20+
navigator.geolocation.getCurrentPosition(resolve, reject)
21+
} else {
2022
navigator.geolocation.getCurrentPosition(resolve, reject, {
2123
...args,
2224
enableHighAccuracy: true,
2325
maximumAge: 1000 /* ms */,
2426
timeout: 15000 /* ms */,
2527
})
26-
} else {
27-
navigator.geolocation.getCurrentPosition(resolve, reject)
2828
}
2929
})
3030

0 commit comments

Comments
 (0)