jgauth / MMM-GoogleTasks

22 stars 29 forks source link

Set fallback value for number of tasks #6

Closed jayked closed 5 years ago

jayked commented 5 years ago

This sets a default for the numTasks variable, in the getDom method, and overwrites it when tasks are set and available. By doing this the Cannot convert undefined or null to object console error will be prevented.

It is possible that #5 could be closed upon merging this pull request, because it made the MMM-Remote-Control module work again.

jayked commented 5 years ago

Changed to #7 because the my master branch got some modifications to personalize it to my own package