Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maka-io authored May 24, 2019
1 parent 8f1fcb4 commit 3c5a892
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ import {
AUTH_TOKEN_KEY,
} from '../constants';

export function initialize(config = { httpLinkOptions: {} }) {
export function initialize(config = {}) {
Object.assign(Config, config);
Object.freeze(Config);

const uploadLink = createUploadLink();

let terminatingLink;


if (!config.httpLinkOptions) {
config.httpLinkOptions = {};
}

// Backward compatibility
if (config.uri) {
config.httpLinkOptions.uri = config.uri;
Expand Down

0 comments on commit 3c5a892

Please sign in to comment.