diff --git a/client/package.json b/client/package.json index 127213a0..f8622ce1 100755 --- a/client/package.json +++ b/client/package.json @@ -12,7 +12,6 @@ "author": "", "license": "UNLICENSED", "dependencies": { - "@orange-games/phaser-input": "^2.0.5", "async": "^2.6.1", "borc": "^2.0.3", "docco": "^0.7.0", diff --git a/client/src/events.js b/client/src/events.js index a8489202..2405adaa 100644 --- a/client/src/events.js +++ b/client/src/events.js @@ -139,7 +139,7 @@ function registerEvents(registry, events) { timeout: false, // overlay: true, drag: false, - close: false, + close: true, title: 'SPAWN CRYP', position: 'center', inputs: [ diff --git a/client/src/socket.js b/client/src/socket.js index 483e4a4d..6a89e103 100644 --- a/client/src/socket.js +++ b/client/src/socket.js @@ -29,7 +29,9 @@ function createSocket(events) { }); events.loginPrompt(); - send({ method: 'account_login', params: { name: 'ntr', password: 'grepgrepgrep' } }); + if (!process.env.NODE_ENV === 'production') { + send({ method: 'account_login', params: { name: 'ntr', password: 'grepgrepgrep' } }); + } }); // Listen for messages