feature(dom) getDataFromStorage: add isDir condition

This commit is contained in:
coderaiser 2013-11-20 09:45:15 +00:00
parent 5511c6678c
commit acf6e2c633

View file

@ -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');