I am using the following to put js on my site...
drupal_add_js(drupal_get_path('theme', 'MYTHEME') . '/js/custom.js');
But I have noticed that this is also adding the js to pages like update.php and other admin pages. Is there a if variable I can use to only load the js on customer facing pages?
Ive used drupal_is_front_page()
before, which is great, is there a drupal_not_admin_page()
or something like that?
A google search for "drupal is not admin page" isnt getting me anywhere.