Skip to content

No events displayed older (Pre ES2023) support #83

Description

@flinthamm

First off, huge thank you for developing this great module.

After having pulled some of my rapidly thinning hair over this one and with the help of MMM-LogExt I tracked this problem down to the use of the Events .toSorted, which is not supported by browsers using older JavaScript engines. The clue was that this worked on more modern browsers but mysteriously would not display any events, despite them being broadcast okay by the camera module.

Anyway, you're probably just interested in the fix and hopefully this is something that can be rolled into the next release?
Line 358 of the shared CX3 module (CX3_shared.mjs) needs to be changed from .toSorted((a, b) => { to .slice().sort((a, b) => {.

Once this has been done, the events suddenly start displaying, in this case on a Samsung Frame TV - Hope this comes in handy for someone :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions