It appears that when you change a variable mode e.g. from light/dark mode it does not trigger a selection or document event. Is there an event that you can hook into on a variable mode change that may not yet be documented.
Solved
Is it possible to trigger off of a variable change
Best answer by tank666
I just tested, the documentchange
event fires when the variable mode changes. This event does not fire only when you switch from the first mode to auto and vice versa.
This is because the PROPERTY_CHANGE
event type does not yet support the explicitVariableModes
property.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.