diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 2761d8a..995a62b 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1,8 +1,11 @@ // Get any elem by ID var get = function(elem) { - return top.document.getElementById(elem); + return document.getElementById(elem); }; +var iceLoc = window.location.pathname; +// var iceDir = iceLoc.substring(0, iceLoc.lastIndexOf('/')); + // Main ICEcoder object var ICEcoder = { @@ -77,7 +80,7 @@ var ICEcoder = { // Create our ID aliases for (var i=0;i