Get current theme setting
// Get current themeconst theme = WPP.conn.getTheme();console.log(theme); // "light", "dark", or "system"// Using enumimport { Theme } from '@wppconnect/wa-js';if (theme === Theme.DARK) { console.log('Dark mode is enabled');} Copy
// Get current themeconst theme = WPP.conn.getTheme();console.log(theme); // "light", "dark", or "system"// Using enumimport { Theme } from '@wppconnect/wa-js';if (theme === Theme.DARK) { console.log('Dark mode is enabled');}
Get current theme setting