mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(dom) getDataFromStorage: add isDir condition
This commit is contained in:
parent
5511c6678c
commit
acf6e2c633
1 changed files with 3 additions and 2 deletions
|
|
@ -1763,9 +1763,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
var hash,
|
||||
nameHash = name + '-hash',
|
||||
nameData = name + '-data',
|
||||
allowed = config.localStorage;
|
||||
allowed = config.localStorage,
|
||||
isDir = DOM.isCurrentIsDir();
|
||||
|
||||
if (!allowed)
|
||||
if (!allowed || isDir)
|
||||
Util.exec(callback);
|
||||
else {
|
||||
hash = Storage.get(name + '-hash');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue