is there a way to detect if I stay in Salesforce Classic or Salesforce Lightning context from javascript as static resource?
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?