Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert setLocation params to string with comma as decimal separator #219

Merged
merged 3 commits into from
Aug 2, 2017

Conversation

formatlos
Copy link
Contributor

using numbers with decimals for lat/long in setLocation results in an error, it has to be passed as string with a comma as decimal separator to fbsimctl

@@ -140,6 +140,8 @@ class Device {
}

async setLocation(lat, lon) {
lat = (lat + '').replace('.', ',');
lon = (lon + '').replace('.', ',');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lat = String(lat).replace('.', ',');
lon = String(lon).replace('.', ',');

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!
If possible, please use String() as @isnifer's suggests. We will merge it ASAP.

@rotemmiz rotemmiz merged commit 6b0bb5d into wix:master Aug 2, 2017
@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants