diff --git a/src/app.js b/src/app.js index 0a0194d111..b6995bbba1 100644 --- a/src/app.js +++ b/src/app.js @@ -147,13 +147,13 @@ class App { self._components.filesProviders['browser'] = new FileProvider('browser') registry.put({api: self._components.filesProviders['browser'], name: 'fileproviders/browser'}) - var remixd = new Remixd(65520) - registry.put({api: remixd, name: 'remixd'}) - remixd.event.register('system', (message) => { - if (message.error) toolTip(message.error) - }) + // var remixd = new Remixd(65520) + // registry.put({api: remixd, name: 'remixd'}) + // remixd.event.register('system', (message) => { + // if (message.error) toolTip(message.error) + // }) - self._components.filesProviders['localhost'] = new RemixDProvider(remixd, self.appManager) + self._components.filesProviders['localhost'] = new RemixDProvider(self.appManager) registry.put({api: self._components.filesProviders['localhost'], name: 'fileproviders/localhost'}) registry.put({api: self._components.filesProviders, name: 'fileproviders'}) diff --git a/src/app/files/remixDProvider.js b/src/app/files/remixDProvider.js index 1ab5e78a94..302bd594f2 100644 --- a/src/app/files/remixDProvider.js +++ b/src/app/files/remixDProvider.js @@ -192,7 +192,7 @@ module.exports = class RemixDProvider { } } -function remixapi (remixd, self) { +function remixapi (appManager, self) { const read = (path, callback) => { path = '' + (path || '') path = pathtool.join('./', path) diff --git a/src/app/files/remixd-handle.js b/src/app/files/remixd-handle.js index 3b980c2499..bbd4418b5a 100644 --- a/src/app/files/remixd-handle.js +++ b/src/app/files/remixd-handle.js @@ -21,7 +21,7 @@ var css = csjs` const profile = { name: 'remixd', url: 'ws://127.0.0.1:65520', - methods: ['folderIsReadOnly'], + methods: ['folderIsReadOnly', 'resolveDirectory'], events: [], description: 'Using Remixd daemon, allow to access file system', kind: 'other', @@ -43,8 +43,7 @@ export class RemixdHandle extends WebsocketPlugin { }) } - async activate () { - await super.activate() + activate () { this.connectToLocalhost() } @@ -58,7 +57,7 @@ export class RemixdHandle extends WebsocketPlugin { * * @param {String} txHash - hash of the transaction */ - connectToLocalhost () { + async connectToLocalhost () { let connection = (error) => { if (error) { console.log(error)