05-04-2022 20:48
05-04-2022 20:48
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.
05-05-2022 04:24
05-05-2022 04:24
05-05-2022 04:24
05-05-2022 13:07
05-05-2022 13:07
It did turn out to be something else in the code. Thanks again Guy_