mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
setOption and getOption should look at publicOptions
This commit is contained in:
@@ -126,7 +126,7 @@ export class OptionsService implements IOptionsService {
|
||||
}
|
||||
|
||||
public setOption(key: string, value: any): void {
|
||||
this.options[key] = value;
|
||||
this.publicOptions[key] = value;
|
||||
}
|
||||
|
||||
private _sanitizeAndValidateOption(key: string, value: any): any {
|
||||
@@ -181,6 +181,6 @@ export class OptionsService implements IOptionsService {
|
||||
}
|
||||
|
||||
public getOption(key: string): any {
|
||||
return this.options[key];
|
||||
return this.publicOptions[key];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user