Remove usage of ! operator
This commit is contained in:
@@ -44,9 +44,13 @@ export class WebLinksAddon implements ITerminalAddon {
|
||||
|
||||
public activate(terminal: Terminal): void {
|
||||
this._terminal = terminal;
|
||||
this._linkProvider = new WebLinkProvider(this._terminal, this._handler);
|
||||
// this._linkMatcherId = this._terminal.registerLinkMatcher(strictUrlRegex, this._handler, this._options);
|
||||
|
||||
// if ('registerLinkProvider' in this._terminal) {
|
||||
this._linkProvider = new WebLinkProvider(this._terminal, strictUrlRegex, this._handler);
|
||||
this._terminal.registerLinkProvider(this._linkProvider);
|
||||
// } else {
|
||||
// this._linkMatcherId = this._terminal.registerLinkMatcher(strictUrlRegex, this._handler, this._options);
|
||||
// }
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
|
||||
Reference in New Issue
Block a user