Hi The Open Market team,
Please note that the Dracula Dark Mode functionality is entirely handled on the frontend using JavaScript, and there are no PHP listeners involved.
The frontend includes two custom event listeners:
// Dracula Enable
document.addEventListener('dracula:enable', () => {
// Perform actions when Dracula mode is enabled
console.log('Dracula Enable');
});
// Dracula Disable
document.addEventListener('dracula:disable', () => {
// Perform actions when Dracula mode is disabled
console.log('Dracula Disable');
});
These listeners respond to custom events:
dracula:enable – Fired when dark mode is activated.
dracula:disable – Fired when dark mode is deactivated.
You can hook into these events to trigger any additional logic or UI updates as needed.
Addendum
I cleared the browser cache and tried again. But now the wheel next to Add to Menu keeps spinning forever and the window for the Pro version installation no longer appears.
Sorry, I replied to the wrong topic.