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

Rename config to nrchkbConfig for isolation purpose #565

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

GogoVega
Copy link
Contributor

The nrchkb node is not isolated which means that all variables in the top scope are global.

In order to avoid a variable duplication that prevents the homekit-service node from instantiating, I renamed config to nrchkbConfig. Because it's a common variable name.

@caitken-com
Copy link

I wonder if it’s possible to scope all those variables inside a function.

@GogoVega
Copy link
Contributor Author

Yes with IIFE but also need to modify the nodes to reflect this changes.

@Shaquu Shaquu merged commit 14b775d into NRCHKB:master Oct 30, 2024
11 checks passed
@GogoVega GogoVega deleted the isolate-config branch December 11, 2024 11:56
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

Successfully merging this pull request may close these issues.

3 participants