From ce454d6a3a0730de2af4d70c4b7a79f36cb4d5ae Mon Sep 17 00:00:00 2001 From: Saurabh Shukla Date: Fri, 2 Aug 2013 13:35:44 +0530 Subject: [PATCH] Update coin.js Changed head node locating code to take care of https://github.com/scottycc/coinwidget.com/issues/4 --- coin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coin.js b/coin.js index e3b4b30..dd49d8a 100644 --- a/coin.js +++ b/coin.js @@ -297,7 +297,7 @@ var CoinWidgetCom = { }; x.src = obj.source; x.id = obj.id; - document.lastChild.firstChild.appendChild(x); + document.getElementsByTagName('head').appendChild(x); } } , stylesheet_loaded: false @@ -329,4 +329,4 @@ var CoinWidgetCom = { CoinWidgetCom.init(); } } -}; \ No newline at end of file +};