overload defaults on options get
This commit is contained in:
parent
154c211fb1
commit
7c3e0cba34
|
@ -184,7 +184,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
|
||||||
if (options == null) {
|
if (options == null) {
|
||||||
this.optionsCache = DefaultOptions;
|
this.optionsCache = DefaultOptions;
|
||||||
} else {
|
} else {
|
||||||
this.optionsCache = options;
|
this.optionsCache = Object.assign({}, DefaultOptions, options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue