From 3869c75e99ec6a79580f392206ae4440d5d568c4 Mon Sep 17 00:00:00 2001 From: Onur Celebi Date: Fri, 3 Jan 2014 13:23:40 +0200 Subject: [PATCH] bug fix : internet explorer 7 and 8 --- build/clippy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/clippy.js b/build/clippy.js index a787621..93a9329 100644 --- a/build/clippy.js +++ b/build/clippy.js @@ -938,7 +938,8 @@ clippy.load._loadScript = function (src) { script.setAttribute('async', 'async'); script.setAttribute('type', 'text/javascript'); - document.head.appendChild(script); + var dochead = document.head || document.getElementsByTagName('head')[0]; + dochead.appendChild(script); }; clippy.load._getAgentDfd = function (name) {