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 +};