Error importing media - uses indexOf instead of contains

Fixes #6894
This commit is contained in:
Jack Cheng
2016-05-19 09:06:29 -07:00
committed by Sébastien Ros
parent 8fadee4a49
commit e90f114a8b

View File

@@ -382,7 +382,7 @@ $(function () {
/* NTFS uses "\" as the directory separator, but AFS uses "/".
Since both of them are illegal characters for file and folder names, it's safe to determine the type of file storage
currently in use based on the directory separator character. */
var separator = deepestChildPath.contains('/') ? '/' : '\\';
var separator = deepestChildPath.indexOf('/') > -1 ? '/' : '\\';
var deepestChildPathBreadCrumbs = deepestChildPath.split(separator);
var currentBreadCrumbs = self.folderPath().split(separator);