mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-29 23:14:25 +01:00
html: merge object values for client-option
This commit is contained in:
@@ -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
2919
src/html.h
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user