diff --git a/lib/client.js b/lib/client.js index 687ff37d..70997175 100644 --- a/lib/client.js +++ b/lib/client.js @@ -259,7 +259,7 @@ var Util, DOM, CloudFunc, join; Listeners.initKeysPanel(); /* Устанавливаем кэш корневого каталога */ - dirPath = CloudFunc.rmLastSlash(dirPath) || '/'; + dirPath = CloudFunc.rmLastSlash(dirPath); Storage.get(dirPath, function(error, data) { if (!data) { @@ -292,7 +292,7 @@ var Util, DOM, CloudFunc, join; var panel = panelParam || Info.panel, NEEDREFRESH = true, path = DOM.getCurrentDirPath(panel), - notSlashlLink = CloudFunc.rmLastSlash(path) || '/'; + notSlashlLink = CloudFunc.rmLastSlash(path); CloudCmd.loadDir({ path : notSlashlLink, @@ -455,7 +455,7 @@ var Util, DOM, CloudFunc, join; if (path !== parentPath) { path = parentPath; - path = CloudFunc.rmLastSlash(path) || '/'; + path = CloudFunc.rmLastSlash(path); CloudCmd.loadDir({ path: path