fix getFile and setFile

pull/3094/head
yann300 6 years ago
parent b74ef28c8e
commit 3ba8f4ba17
  1. 4
      src/app/plugin/pluginAPI.js

@ -78,7 +78,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
var provider = fileManager.fileProviderOf(path)
if (provider) {
// TODO add approval to user for external plugin to get the content of the given `path`
provider.get(mod + '/' + path, (error, content) => {
provider.get(path, (error, content) => {
cb(error, content)
})
} else {
@ -89,7 +89,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
var provider = fileManager.fileProviderOf(path)
if (provider) {
// TODO add approval to user for external plugin to set the content of the given `path`
provider.set(mod + '/' + path, content, (error) => {
provider.set(path, content, (error) => {
cb(error)
})
} else {

Loading…
Cancel
Save