html: merge object values for client-option

This commit is contained in:
Shuanglei Tao
2021-11-27 11:19:45 +08:00
parent f896dff8a7
commit 723ae96693
2 changed files with 1465 additions and 1460 deletions

View File

@@ -280,7 +280,11 @@ export class Xterm extends Component<Props> {
break;
default:
console.log(`[ttyd] option: ${key}=${JSON.stringify(value)}`);
terminal.options[key] = value;
if (terminal.options[key] instanceof Object) {
terminal.options[key] = Object.assign({}, terminal.options[key], value);
} else {
terminal.options[key] = value;
}
if (key.indexOf('font') === 0) fitAddon.fit();
break;
}

2919
src/html.h generated

File diff suppressed because it is too large Load Diff