I am trying to add settings to my clock face for color etc, so I copied all of the SDK Moment clock's settings code into my project. However, I get an error when I try to set a color to anything:
Unhandled exception: TypeError: Cannot set property 'colorAll' of undefined
? at app/simple/device-settings.js:29,3
The code where the error is occuring is:
// Received message containing settings data
messaging.peerSocket.addEventListener("message", function(evt) {
settings[evt.data.key] = evt.data.value;
onsettingschange(settings);
})
Is there a simple solution to this?
Answered! Go to the Best Answer.
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more