Skip to content

Commit

Permalink
Fix default config override.
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsgames committed Mar 25, 2021
1 parent 893d849 commit 545a2b4
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 545a2b4

Please sign in to comment.