05-04-2022 20:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-04-2022 20:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
05-05-2022 04:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-05-2022 04:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
05-05-2022 04:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-05-2022 04:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
05-05-2022 13:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-05-2022 13:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
It did turn out to be something else in the code. Thanks again Guy_
