Skip to content

Commit

Permalink
Change config options default
Browse files Browse the repository at this point in the history
  • Loading branch information
aksalj committed Jan 31, 2024
1 parent 6fb49f9 commit fa02fb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { log } = utils;
* @param {ClientConfig} config
*/
function Client(config) {
const opts = {
const conf = {
...config,
};
const constraints = {
Expand All @@ -31,19 +31,19 @@ function Client(config) {
},
};

const error = validate(opts, constraints);
const error = validate(conf, constraints);
if (error) {
throw error;
}

this.config = {
options: {
...conf,
options: conf.options || {
uris: {
social: 'id.elarian.com:443',
state: 'api.elarian.com:443',
},
},
...opts,
};
this._socialService = null;
this._appStateService = null;
Expand Down

0 comments on commit fa02fb0

Please sign in to comment.