Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Polyfill document.head for IE7-8

  • Loading branch information...
commit 1633a87f4e6b1d18d9a31568da89d481a75ca248 1 parent 1f81be6
Erik Charlebois authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  client/swank-js-inject.js
View
1  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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.