Skip to content

Commit

Permalink
Merge pull request #220 from LzpTec/main
Browse files Browse the repository at this point in the history
Fix default config override.
  • Loading branch information
mlynch authored Mar 29, 2021
2 parents 893d849 + 545a2b4 commit b67aa24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Storage {
* Secure Storage is used when available, or fall back to IndexedDB or LocalStorage on the web.
*/
constructor(config: StorageConfig = defaultConfig) {
const actualConfig = Object.assign(defaultConfig, config || {});
const actualConfig = Object.assign({}, defaultConfig, config || {});
this._config = actualConfig;
}

Expand Down

0 comments on commit b67aa24

Please sign in to comment.