mailui.init({
defaultDevice: "desktop",
devices: ["desktop", "tablet", "mobile"]
});
device:changed
event listener is triggered whenever there is a change in the device being used. This event helps in adapting the interface or functionality to suit the new device, ensuring a seamless user experience across different devices.mailui.addEventListener("device:changed", function (data: { device: string }) {
// Save device changes
});