From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- client/src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/app.component.ts') diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index c1e296182..ed5cc53d9 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -243,7 +243,7 @@ export class AppComponent implements OnInit, AfterViewInit { // Inject JS if (this.serverConfig.instance.customizations.javascript) { try { - // tslint:disable:no-eval + /* eslint-disable no-eval */ eval(this.serverConfig.instance.customizations.javascript) } catch (err) { console.error('Cannot eval custom JavaScript.', err) @@ -294,7 +294,7 @@ export class AppComponent implements OnInit, AfterViewInit { private initHotkeys () { this.hotkeysService.add([ - new Hotkey(['/', 's'], (event: KeyboardEvent): boolean => { + new Hotkey([ '/', 's' ], (event: KeyboardEvent): boolean => { document.getElementById('search-video').focus() return false }, undefined, $localize`Focus the search bar`), -- cgit v1.2.3