From 668b25eeb25e2bad7eef10f56a7be1ee8fb24580 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 19 Aug 2017 11:03:58 -0700 Subject: [PATCH] Fix license info and lint --- src/Terminal.ts | 6 ++++-- src/utils/Sounds.ts | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Terminal.ts b/src/Terminal.ts index 82bb9589..93524abe 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -2284,11 +2284,13 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT } private visualBell(): boolean { - return this.options.bellStyle == 'visual' || this.options.bellStyle == 'both'; + return this.options.bellStyle === 'visual' || + this.options.bellStyle === 'both'; } private soundBell(): boolean { - return this.options.bellStyle == 'sound' || this.options.bellStyle == 'both'; + return this.options.bellStyle === 'sound' || + this.options.bellStyle === 'both'; } private preloadBellSound(): void { diff --git a/src/utils/Sounds.ts b/src/utils/Sounds.ts index 413a7a29..6d20c671 100644 --- a/src/utils/Sounds.ts +++ b/src/utils/Sounds.ts @@ -1 +1,9 @@ +/** + * @license MIT + */ + +// Source: https://freesound.org/people/altemark/sounds/45759/ +// This sound is released under the Creative Commons Attribution 3.0 Unported +// (CC BY 3.0) license. It was created by 'altemark'. No modifications have been +// made, apart from the conversion to base64. export const BellSound = 'data:audio/wav;base64,UklGRigBAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQBAADpAFgCwAMlBZoG/wdmCcoKRAypDQ8PbRDBEQQTOxRtFYcWlBePGIUZXhoiG88bcBz7HHIdzh0WHlMeZx51HmkeUx4WHs8dah0AHXwc3hs9G4saxRnyGBIYGBcQFv8U4RPAEoYRQBACD70NWwwHC6gJOwjWBloF7gOBAhABkf8b/qv8R/ve+Xf4Ife79W/0JfPZ8Z/wde9N7ijtE+wU6xvqM+lb6H7nw+YX5mrlxuQz5Mzje+Ma49fioeKD4nXiYeJy4pHitOL04j/jn+MN5IPkFOWs5U3mDefM55/ogOl36m7rdOyE7abuyu8D8Unyj/Pg9D/2qfcb+Yn6/vuK/Qj/lAAlAg==';