From c418d3e6616c24cf528aed7ff89adfd0b4904f79 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 27 Feb 2018 13:25:26 +0100 Subject: [PATCH] add api or config explorer --- src/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/app.js b/src/app.js index 948197ff06..173990a012 100644 --- a/src/app.js +++ b/src/app.js @@ -701,6 +701,17 @@ Please make a backup of your contracts and start using http://remix.ethereum.org }, newAccount: (pass, cb) => { udapp.newAccount(pass, cb) + }, + setConfig: (mod, path, content, cb) => { + self._api.filesProviders['config'].set(mod + '/' + path, content) + cb() + }, + getConfig: (mod, path, cb) => { + cb(null, self._api.filesProviders['config'].get(mod + '/' + path)) + }, + removeConfig: (mod, path, cb) => { + cb(null, self._api.filesProviders['config'].remove(mod + '/' + path)) + if (cb) cb() } } var rhpEvents = {