Skip to content

Commit

Permalink
zello-channel-api#50 (#57)
Browse files Browse the repository at this point in the history
Fix session instance options being overriden with other instance options
  • Loading branch information
megamk committed Aug 1, 2019
1 parent 800478e commit c6cba6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/js/src/classes/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Session extends Emitter {
super();
const library = Utils.getLoadedLibrary();
Session.validateInitialOptions(options);
this.options = Object.assign(library.Sdk.initOptions, {
this.options = Object.assign({}, library.Sdk.initOptions, {
maxConnectAttempts: 5,
connectRetryTimeoutMs: 1000,
autoSendAudio: true
Expand Down

0 comments on commit c6cba6a

Please sign in to comment.