Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment