browser and mobile isCordova condition