diff --git a/build.js b/build.js index e79722d3..fcd52203 100644 --- a/build.js +++ b/build.js @@ -15,7 +15,7 @@ var buildIndexedDB = (function(){ if (i < moduleList.length - 1) addScript(i + 1); else callback(); } - document.getElementsByTagName('head').appendChild(x); + document.getElementsByTagName('head')[0].appendChild(x); }(0)); }, concatScripts: function(callback){