Skip to content

Commit

Permalink
Merge pull request #486 from nextcloud/fix/export-context
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Sep 8, 2022
2 parents da3a904 + c7b0bfe commit 2d285b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/index.ts
Expand Up @@ -50,8 +50,10 @@ export const removeNewFileMenuEntry = function(entry: Entry | string) {

/**
* Get the list of registered entries from the upload menu
*
* @param {FileInfo} context the creation context. Usually the current folder FileInfo
*/
export const getNewFileMenuEntries = function() {
export const getNewFileMenuEntries = function(context?: Object) {
const newFileMenu = getNewFileMenu()
return newFileMenu.getEntries()
return newFileMenu.getEntries(context)
}

0 comments on commit 2d285b7

Please sign in to comment.