diff --git a/app/js/websocket.js b/app/js/websocket.js index cd34188..7ab6b9d 100644 --- a/app/js/websocket.js +++ b/app/js/websocket.js @@ -103,6 +103,10 @@ function initSocket() { // gcodeeditortab }); + socket.on('gcodeupload', function(data) { + printLog("Activated window"); + }); + socket.on('integrationpopup', function(data) { printLog("Integration called from " + data) // editor.session.setValue(data); diff --git a/index.js b/index.js index 0ba7d2e..6f46e85 100644 --- a/index.js +++ b/index.js @@ -516,7 +516,7 @@ app.get('/activate', (req, res) => { jogWindow.setAlwaysOnTop(false); } setTimeout(function() { - io.sockets.emit('gcodeupload', req.hostname); + io.sockets.emit('activate', req.hostname); }, 1500); }) diff --git a/package.json b/package.json index 88dbee9..7b23872 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "OpenBuildsMachineDriver", - "version": "1.0.60", + "version": "1.0.61", "license": "AGPL-3.0", "description": "Machine Interface Driver for OpenBuilds", "author": "github.com/openbuilds ",