fixed gist provider

pull/1/head
LianaHus 5 years ago
parent 9c380339ce
commit fb1edf9445
  1. 6
      src/app/panels/file-panel.js

@ -56,14 +56,14 @@ module.exports = class Filepanel extends ViewPlugin {
['createNewFile', 'publishToGist', 'copyFiles', canUpload ? 'uploadFile' : ''] ['createNewFile', 'publishToGist', 'copyFiles', canUpload ? 'uploadFile' : '']
) )
function createProvider (key) { function createProvider (key, menuItems) {
return new FileExplorer(self._components.registry, self._deps.fileProviders[key]) return new FileExplorer(self._components.registry, self._deps.fileProviders[key], menuItems)
} }
var fileSystemExplorer = createProvider('localhost') var fileSystemExplorer = createProvider('localhost')
var swarmExplorer = createProvider('swarm') var swarmExplorer = createProvider('swarm')
var githubExplorer = createProvider('github') var githubExplorer = createProvider('github')
var gistExplorer = createProvider('updateGist') var gistExplorer = createProvider('gist', ['updateGist'])
var httpExplorer = createProvider('http') var httpExplorer = createProvider('http')
var httpsExplorer = createProvider('https') var httpsExplorer = createProvider('https')
var httpsExplorer = createProvider('ipfs') var httpsExplorer = createProvider('ipfs')

Loading…
Cancel
Save