overload defaults on options get

This commit is contained in:
Kyle Spearrin 2018-10-10 09:59:09 -04:00
parent 154c211fb1
commit 7c3e0cba34
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
if (options == null) {
this.optionsCache = DefaultOptions;
} else {
this.optionsCache = options;
this.optionsCache = Object.assign({}, DefaultOptions, options);
}
}