I need to get the execution environment of JS code. if it is a console or if it browser. How should I approach this?
for instance:
if(exec_type() == 'browser')
{
// do something
}
What is the purpose of it? I want to add some functionality if the code is not run from a console such as firebug, and to disable them when it is run from console environment.