diff options
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/files.js b/src/helpers/files.js index b4993fd95..d8d3f31cb 100644 --- a/src/helpers/files.js +++ b/src/helpers/files.js @@ -75,7 +75,7 @@ const fetchFileInfo = async function(user, path) { const registerFileCreate = () => { const newFileMenuPlugin = { attach: function(menu) { - var fileList = menu.fileList + const fileList = menu.fileList // only attach to main file list, public view is not supported yet if (fileList.id !== 'files' && fileList.id !== 'files.public') { @@ -91,7 +91,7 @@ const registerFileCreate = () => { fileType: 'file', actionHandler: function(name) { fileList.createFile(name).then(function(status, data) { - let fileInfoModel = new OCA.Files.FileInfoModel(data) + const fileInfoModel = new OCA.Files.FileInfoModel(data) if (typeof OCA.Viewer !== 'undefined') { OCA.Files.fileActions.triggerAction('view', fileInfoModel, fileList) } else if (typeof OCA.Viewer === 'undefined') { |