Validate constructor options

This commit is contained in:
IllusionMH
2020-09-01 01:03:49 +03:00
parent 60419a7cc6
commit cf0b7ce2d0
+1 -1
View File
@@ -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);
}
}
}