From 530428ec1405c45de490e9d1d947f3f1bd58225e Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 5 Dec 2013 08:56:04 +0000 Subject: [PATCH] fix(client) rm last slash before first save to storage --- lib/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/client.js b/lib/client.js index 6ebd8917..a14bf474 100644 --- a/lib/client.js +++ b/lib/client.js @@ -245,6 +245,9 @@ var Util, DOM, CloudFunc, CloudCmd; Storage.setAllowed(localStorage); /* Устанавливаем кэш корневого каталога */ var lDirPath = DOM.getCurrentDirPath(); + + lDirPath = CloudFunc.removeLastSlash(lDirPath) || '/'; + if (!Storage.get(lDirPath)) Storage.set(lDirPath, getJSONfromFileTable()); });