mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Use shorter array-conversion
This commit is contained in:
parent
226c205631
commit
c6ca9c1e9d
1 changed files with 1 additions and 3 deletions
|
|
@ -245,9 +245,7 @@ var OCdialogs = {
|
|||
},
|
||||
_getFileList: function(dir, mimeType) {
|
||||
if (typeof(mimeType) === "string") {
|
||||
var tmp = mimeType;
|
||||
mimeType = new Array();
|
||||
mimeType[0] = tmp;
|
||||
mimeType = [mimeType];
|
||||
}
|
||||
|
||||
return $.getJSON(
|
||||
|
|
|
|||
Loading…
Reference in a new issue