From 68a51af239492db30082e80627a593f8bc962b17 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 8 Mar 2013 14:17:21 +0000 Subject: [PATCH] Remove trailing slashes on 4 instances Mainly to cover the root so / becomes nothing so we don't end up with a double slash. Worth removing anyway incase it's passed elsewhere somehow/through the API. --- lib/ice-coder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index adfb4d6..56c6bc4 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -674,7 +674,7 @@ var ICEcoder = { targetElem = document.getElementById('filesFrame').contentWindow.document.getElementById(location.replace(/\//g,"|")); locNest = targetElem.parentNode.parentNode.nextSibling; newText = document.createTextNode("\n"); - innerLI = '        '+file+' '+perms+''; + innerLI = '        '+file+' '+perms+''; // If we don't have at least 3 DOM items in here, it's an empty folder if(locNest.childNodes.length<3) {