Permalink
Browse files

Polyfill document.head for IE7-8

  • Loading branch information...
1 parent 1f81be6 commit 1633a87f4e6b1d18d9a31568da89d481a75ca248 Erik Charlebois committed Mar 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 client/swank-js-inject.js
@@ -19,6 +19,7 @@ function load(url, requirement) {
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
script.setAttribute('src', swank_server + url);
+ document.head = document.head || document.getElementsByTagName('head')[0];
document.head.appendChild(script);
}

0 comments on commit 1633a87

Please sign in to comment.