Skip to content
Browse files

Attach script to head node whether or not it is the first element in …

…the document
  • Loading branch information...
1 parent 2e0f96e commit cf7bb212a8e3c8afa32112f5a750480e489b6e65 Steve Rice committed Feb 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 skin/js/toolbar.js
View
2 skin/js/toolbar.js 100644 → 100755
@@ -11,7 +11,7 @@
j(script).remove();
}
};
- document.documentElement.childNodes[0].appendChild(script)
+ document.getElementsByTagName('head')[0].appendChild(script)
}
})(window, document, "1.3", function($, jquery_loaded) {

0 comments on commit cf7bb21

Please sign in to comment.
Something went wrong with that request. Please try again.