fix(client) rm last slash before first save to storage

This commit is contained in:
coderaiser 2013-12-05 08:56:04 +00:00
parent 5f9b6a6699
commit 530428ec14

View file

@ -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());
});