Updated to Electron v3.0.0, renderer to node v10.

Fixed deprecation of Buffer constructor in node v10.
Set flag to print the stack trace of node warnings in the renderer.
This commit is contained in:
Daniel Scalzi
2018-09-22 05:07:18 -04:00
parent 72f822d2b2
commit b2e9223b10
5 changed files with 85 additions and 67 deletions

View File

@@ -19,7 +19,7 @@ exports.getStatus = function(address, port = 25565){
return new Promise((resolve, reject) => {
const socket = net.connect(port, address, () => {
let buff = new Buffer([0xFE, 0x01])
let buff = Buffer.from([0xFE, 0x01])
socket.write(buff)
})