mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 08:29:53 +00:00
fix(client) rm last slash before first save to storage
This commit is contained in:
parent
5f9b6a6699
commit
530428ec14
1 changed files with 3 additions and 0 deletions
|
|
@ -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());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue