fixed detection for admin client-side scripts