i had a component a testComponent.
<aura:component>
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
</aura:component>
its controller is
doInit : function(component, event, helper) {
console.log(typeof sforce != 'undefined');
}
when i embed this component in my detail page of contacts. it is given sforce as undefined. i am excepting that in lightning it should return as true.
sforce === undefined
would return true issforce
is undefinde