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

Use getHeader instead of data.header #1599

Merged
merged 4 commits into from
Mar 18, 2019

Conversation

rejas
Copy link
Collaborator

@rejas rejas commented Mar 8, 2019

My MMM-MotionDetector modules uses a njk template for displaying some status.
But overwriting the getHeader function didnt produce a Header line in the resulting DOM, only manually setting this.data.header = "foo bar"

Turns out creating the header in module.js uses not the method but the data itself. This PR changes that by using the getHeader method so modules can overwrite it

@MichMich MichMich merged commit b07c43a into MagicMirrorOrg:develop Mar 18, 2019
@rejas rejas deleted the use_getHeader branch March 18, 2019 16:15
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.

2 participants