mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
chore(client) baseInit: mv vars to top
This commit is contained in:
parent
c36428f74f
commit
e001f46c98
1 changed files with 6 additions and 6 deletions
|
|
@ -237,7 +237,6 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
DOM.setCurrentFile(files[0]);
|
||||
|
||||
Listeners = CloudCmd.Listeners;
|
||||
|
||||
Listeners.init();
|
||||
/* загружаем Google Analytics */
|
||||
Listeners.analytics();
|
||||
|
|
@ -247,16 +246,17 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
CloudCmd.KeysPanel = Listeners.initKeysPanel();
|
||||
|
||||
CloudCmd.getConfig(function(config) {
|
||||
var localStorage = config.localStorage;
|
||||
var localStorage = config.localStorage,
|
||||
dirPath = DOM.getCurrentDirPath();
|
||||
|
||||
/* устанавливаем переменную доступности кэша */
|
||||
Storage.setAllowed(localStorage);
|
||||
/* Устанавливаем кэш корневого каталога */
|
||||
var lDirPath = DOM.getCurrentDirPath();
|
||||
|
||||
lDirPath = CloudFunc.rmLastSlash(lDirPath) || '/';
|
||||
dirPath = CloudFunc.rmLastSlash(dirPath) || '/';
|
||||
|
||||
if (!Storage.get(lDirPath))
|
||||
Storage.set(lDirPath, getJSONfromFileTable());
|
||||
if (!Storage.get(dirPath))
|
||||
Storage.set(dirPath, getJSONfromFileTable());
|
||||
});
|
||||
|
||||
Util.exec(CloudCmd.Key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue