mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Stricter check for option existence
This commit is contained in:
+1
-1
@@ -366,7 +366,7 @@ Terminal.prototype.getOption = function(key, value) {
|
||||
throw new Error('No option with key "' + key + '"');
|
||||
}
|
||||
|
||||
if (typeof this.options[key] != 'undefined') {
|
||||
if (typeof this.options[key] !== 'undefined') {
|
||||
return this.options[key];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user