From 33b2e3836f9fe46b4e52b3b874197fb458516064 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 7 Sep 2018 17:21:59 +0200 Subject: [PATCH] fix getFile and setFile --- src/app/plugin/pluginAPI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/plugin/pluginAPI.js b/src/app/plugin/pluginAPI.js index 18faeb538d..1d156e7026 100644 --- a/src/app/plugin/pluginAPI.js +++ b/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 {