Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 1995a8e

Browse files
Use JSON.parse(JSON.stringify()) trick because JS objects are weird
1 parent 28ce126 commit 1995a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function setupContext (appName, opts, cb) {
196196
ssbConfig.remote = `unix:${socketPath}:~noauth:${pubkey}`
197197
}
198198

199-
const redactedConfig = Object.assign({}, ssbConfig);
199+
const redactedConfig = JSON.parse(JSON.stringify(ssbConfig))
200200
redactedConfig.keys.private = null
201201
console.log(redactedConfig)
202202

0 commit comments

Comments
 (0)