Fix double stringify

This commit is contained in:
Anthony Laibe 2018-08-31 11:56:11 +01:00
parent 4eed27a55a
commit 295f254ea9
1 changed files with 2 additions and 2 deletions

View File

@ -96,11 +96,11 @@ class Whisper {
let connection = this.communicationConfig.connection || {};
// todo: make the add code a function as well
let config = JSON.stringify({
let config = {
server: canonicalHost(connection.host || defaultHost),
port: connection.port || '8546',
type: connection.type || 'ws'
});
};
config = JSON.stringify(config);