Commit 33b2e383 authored by yann300's avatar yann300

fix getFile and setFile

parent 75a98c3e
...@@ -78,7 +78,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) => ...@@ -78,7 +78,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
var provider = fileManager.fileProviderOf(path) var provider = fileManager.fileProviderOf(path)
if (provider) { if (provider) {
// TODO add approval to user for external plugin to get the content of the given `path` // 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) cb(error, content)
}) })
} else { } else {
...@@ -89,7 +89,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) => ...@@ -89,7 +89,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
var provider = fileManager.fileProviderOf(path) var provider = fileManager.fileProviderOf(path)
if (provider) { if (provider) {
// TODO add approval to user for external plugin to set the content of the given `path` // 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) cb(error)
}) })
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment