fix(websocket): [connection] Ensure WebSocket Connection Not Null

Fixes #83
pull/3094/head
Dan Forbes 5 years ago
parent 7a972657c1
commit 553093420c
  1. 2
      package.json
  2. 2
      src/services/sharedFolder.js

@ -1,6 +1,6 @@
{
"name": "remixd",
"version": "0.1.8-alpha.9",
"version": "0.1.8-alpha.10",
"description": "remix server: allow accessing file system from remix.ethereum.org and start a dev environment (see help section)",
"main": "./src/index.js",
"bin": {

@ -15,7 +15,7 @@ module.exports = {
sharedFolder: function (sharedFolder, readOnly) {
this.sharedFolder = sharedFolder
this.readOnly = readOnly
if (this.websocket) this.websocket.send(message('rootFolderChanged', {}))
if (this.websocket.connection) this.websocket.send(message('rootFolderChanged', {}))
},
list: function (args, cb) {

Loading…
Cancel
Save