Commit cb5b2f33 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #24068: Fix "undefined is undefined" error in IE5 with drupal.js

parent 1a3f0ddb
......@@ -2,7 +2,7 @@
* Only enable Javascript functionality if all required features are supported.
*/
function isJsEnabled() {
if (document.jsEnabled == undefined) {
if (typeof document.jsEnabled == 'undefined') {
// Note: ! casts to boolean implicitly.
document.jsEnabled = !(
!document.getElementsByTagName ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment