I need this because before to detect the user theme I used
if(sforce && sforce.console && sforce.console.isInConsole())
but for some months now it doesn't work more because
sforce can be used also in Lightning.
Do you know another trick to detect theme from JS?