mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
fix option defaults.
This commit is contained in:
+2
-3
@@ -152,12 +152,11 @@ function Terminal(options) {
|
||||
|
||||
each(keys(Terminal.defaults), function(key) {
|
||||
if (options[key] == null) {
|
||||
// Legacy
|
||||
options[key] = Terminal.options[key];
|
||||
// Legacy:
|
||||
if (Terminal[key] !== Terminal.defaults[key]) {
|
||||
options[key] = Terminal[key];
|
||||
return;
|
||||
}
|
||||
options[key] = Terminal.options[key];
|
||||
}
|
||||
self[key] = options[key];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user