From cf0b7ce2d0b574f93566933eea06f0b27fc6e61c Mon Sep 17 00:00:00 2001 From: IllusionMH Date: Tue, 1 Sep 2020 01:03:49 +0300 Subject: [PATCH] Validate constructor options --- src/common/services/OptionsService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/services/OptionsService.ts b/src/common/services/OptionsService.ts index ec099f14..a4b06404 100644 --- a/src/common/services/OptionsService.ts +++ b/src/common/services/OptionsService.ts @@ -74,7 +74,7 @@ export class OptionsService implements IOptionsService { for (const k of Object.keys(options)) { if (k in this.options) { const newValue = options[k as keyof IPartialTerminalOptions] as any; - this.options[k] = newValue; + this.options[k] = this._sanitizeAndValidateOption(k, newValue); } } }