fix remix-ide npm module

pull/3094/head
yann300 6 years ago
parent bb38238d06
commit 3d86200b13
  1. 4
      bin/remix-ide

@ -9,10 +9,10 @@ var server = httpServer.createServer({
var folder = process.argv.length > 2 ? process.argv[2] : process.cwd() var folder = process.argv.length > 2 ? process.argv[2] : process.cwd()
server.listen(8080, '127.0.0.1', function () {}) server.listen(8080, '127.0.0.1', function () {})
var router = new remixd.Router(65520, remixd.services.sharedFolder, (webSocket) => { var router = new remixd.Router(65520, remixd.services.sharedFolder, { remixIdeUrl: 'http://localhost:8080' }, (webSocket) => {
remixd.services.sharedFolder.setWebSocket(webSocket) remixd.services.sharedFolder.setWebSocket(webSocket)
remixd.services.sharedFolder.setupNotifications(folder) remixd.services.sharedFolder.setupNotifications(folder)
remixd.services.sharedFolder.sharedFolder(folder) remixd.services.sharedFolder.sharedFolder(folder, false)
}) })
router.start() router.start()

Loading…
Cancel
Save