Skip to content

Commit

Permalink
pull changes from other PR and changes to storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-mitra committed Mar 17, 2021
1 parent 475886d commit 474653d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ class Analytics {
if (options && options.logLevel) {
logger.setLogLevel(options.logLevel);
}
if (options && options.setCookieDomain) {
this.storage.options({domain: options.setCookieDomain});
}
if (options && options.integrations) {
Object.assign(this.loadOnlyIntegrations, options.integrations);
tranformToRudderNames(this.loadOnlyIntegrations);
Expand Down
4 changes: 4 additions & 0 deletions utils/storage/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class Storage {
}
}

options(options = {}) {
this.storage.options(options);
}

/**
* Json stringify the given value
* @param {*} value
Expand Down

0 comments on commit 474653d

Please sign in to comment.