Check if in IDE or on web

Hey Guys,

Is it possible for me to check to see if I am running my application from the IDE or on a web page?

Reason being is because I am currently building a video player and I have ads coming in every 2 videos, and at the start… I was hoping to set something up so that I can bypass this if I am just developing the ap locally…

Thanks,

–d