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

Transfer setting from main index.js #1

Open
gpfrello opened this issue Jul 20, 2018 · 1 comment
Open

Transfer setting from main index.js #1

gpfrello opened this issue Jul 20, 2018 · 1 comment

Comments

@gpfrello
Copy link

Hello,
thanks for your great module.
I would like to change heart icon color and HR text based on a setting. The settings are provided by the companion app and then transferred to the main index.js. How can I now transfer the settings to the hrm module?
Practically I would like to have something like hrIcon.style.fill = settings.heartcolor working (where heart color is set in the settings)
Thanks

@kverpoorten
Copy link
Contributor

Please check line 67 of hrm.js

There the color of the icon is set, you can just replace #FF0000 with the color from your settings there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants