diff --git a/src/app/files/remixd-handle.js b/src/app/files/remixd-handle.js index bd08cb4829e..6fb527a33be 100644 --- a/src/app/files/remixd-handle.js +++ b/src/app/files/remixd-handle.js @@ -20,6 +20,7 @@ var css = csjs` const profile = { name: 'remixd', + displayName: 'RemixD', url: 'ws://127.0.0.1:65520', methods: ['folderIsReadOnly', 'resolveDirectory', 'get', 'exists', 'isFile', 'set', 'rename', 'remove', 'isDirectory', 'list'], events: [], @@ -57,7 +58,7 @@ export class RemixdHandle extends WebsocketPlugin { * connect to localhost if no connection and render the explorer * disconnect from localhost if connected and remove the explorer * - * @param {String} txHash - hash of the transaction + * @param {String} txHash - hash of the transaction */ async connectToLocalhost () { let connection = (error) => { @@ -83,7 +84,13 @@ export class RemixdHandle extends WebsocketPlugin { fn: () => { try { super.activate() - setTimeout(() => { connection() }, 2000) + setTimeout(() => { + if (!super.socket) { + connection(new Error('Connection with daemon failed.')) + } else { + connection() + } + }, 3000) } catch (error) { connection(error) } diff --git a/src/app/panels/file-panel.js b/src/app/panels/file-panel.js index f20a1a0bd14..532591daec4 100644 --- a/src/app/panels/file-panel.js +++ b/src/app/panels/file-panel.js @@ -65,7 +65,7 @@ module.exports = class Filepanel extends ViewPlugin { const explorers = yo`