Jasig/cas — pull request #296 by SheenaE (2013-08-08 19:00:22+00:00)
Title: split console OR logic into two if statements to handle javascript error...

... in older browsers

This came to me as a bug ticket at Oregon State University. Using CAS in IE8 did not focus in the username field, and instead focus was in the search bar and there was a javascript error. I believe this is due to the older browser not making the console available until development tools have been toggled at least once. I replicated the bug with IE8 .0.7600.16385 on a win7 vm.

The previous if block did not handle the case of !window.console returning null or undefined.