mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fix(dom) getDataFromStorage: never return hash
This commit is contained in:
parent
0d93310338
commit
0dc0b3e74a
1 changed files with 9 additions and 15 deletions
|
|
@ -1835,21 +1835,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
|
||||
if (!allowed || isDir)
|
||||
Util.exec(callback);
|
||||
else {
|
||||
hash = Storage.get(nameHash);
|
||||
|
||||
if (!hash)
|
||||
Util.exec(callback);
|
||||
else
|
||||
DOM.checkStorageHash(name, function(error, equal, hash) {
|
||||
var data;
|
||||
|
||||
if (!error && equal)
|
||||
data = Storage.get(nameData, data);
|
||||
|
||||
Util.exec(callback, data, hash);
|
||||
});
|
||||
}
|
||||
else
|
||||
DOM.checkStorageHash(name, function(error, equal, hash) {
|
||||
var data;
|
||||
|
||||
if (!error && equal)
|
||||
data = Storage.get(nameData, data);
|
||||
|
||||
Util.exec(callback, data, hash);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue