Fix lints
This commit is contained in:
+5
-5
@@ -694,7 +694,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
this.viewportElement.appendChild(this.viewportScrollArea);
|
this.viewportElement.appendChild(this.viewportScrollArea);
|
||||||
|
|
||||||
// preload audio
|
// preload audio
|
||||||
this.preloadBellSound()
|
this.preloadBellSound();
|
||||||
|
|
||||||
// Create the selection container.
|
// Create the selection container.
|
||||||
this.selectionContainer = document.createElement('div');
|
this.selectionContainer = document.createElement('div');
|
||||||
@@ -2284,15 +2284,15 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
}
|
}
|
||||||
|
|
||||||
private visualBell(): boolean {
|
private visualBell(): boolean {
|
||||||
var styles = [].concat.apply([], [this.options.bellStyle]);
|
let styles = [].concat.apply([], [this.options.bellStyle]);
|
||||||
|
|
||||||
return styles.indexOf('visual') > -1 || styles.indexOf('both') > -1
|
return styles.indexOf('visual') > -1 || styles.indexOf('both') > -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private soundBell(): boolean {
|
private soundBell(): boolean {
|
||||||
var styles = [].concat.apply([], [this.options.bellStyle]);
|
let styles = [].concat.apply([], [this.options.bellStyle]);
|
||||||
|
|
||||||
return styles.indexOf('sound') > -1 || styles.indexOf('both') > -1
|
return styles.indexOf('sound') > -1 || styles.indexOf('both') > -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private preloadBellSound(): void {
|
private preloadBellSound(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user