make sure websocket is defined

pull/454/head
yann300 5 years ago
parent 25961696ab
commit 30bbfdc739
  1. 1141
      package-lock.json
  2. 2
      package.json
  3. 2
      src/services/sharedFolder.js

1141
package-lock.json generated

File diff suppressed because it is too large Load Diff

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

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

Loading…
Cancel
Save