Don't freeze the UI with old (invalid) states of the drive history

This commit is contained in:
yflory
2019-08-12 16:14:44 +02:00
parent 21658e9de1
commit bbd59c6a2b
3 changed files with 22 additions and 0 deletions

View File

@@ -1036,6 +1036,9 @@ define([
var isInSharedFolder = _isInSharedFolder;
/* Generic: doesn't need access to a proxy */
var isValidDrive = function (Env, obj) {
return Env.user.userObject.isValidDrive(obj);
};
var isFile = function (Env, el, allowStr) {
return Env.user.userObject.isFile(el, allowStr);
};
@@ -1131,6 +1134,7 @@ define([
getUserObjectPath: callWithEnv(getUserObjectPath),
isDuplicateOwned: callWithEnv(isDuplicateOwned),
// Generic
isValidDrive: callWithEnv(isValidDrive),
isFile: callWithEnv(isFile),
isFolder: callWithEnv(isFolder),
isSharedFolder: callWithEnv(isSharedFolder),