aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 14:42:53 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 08:35:06 +0200
commit9df52d660feb722404be00a50f3c8a612bec1c15 (patch)
treedde52880fa012874d24c60f64eb596b0a789cc8b /client/src/app/app.component.ts
parentadb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff)
downloadPeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip
Migrate client to eslint
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts4
1 files changed, 2 insertions, 2 deletions
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 {
243 // Inject JS 243 // Inject JS
244 if (this.serverConfig.instance.customizations.javascript) { 244 if (this.serverConfig.instance.customizations.javascript) {
245 try { 245 try {
246 // tslint:disable:no-eval 246 /* eslint-disable no-eval */
247 eval(this.serverConfig.instance.customizations.javascript) 247 eval(this.serverConfig.instance.customizations.javascript)
248 } catch (err) { 248 } catch (err) {
249 console.error('Cannot eval custom JavaScript.', err) 249 console.error('Cannot eval custom JavaScript.', err)
@@ -294,7 +294,7 @@ export class AppComponent implements OnInit, AfterViewInit {
294 294
295 private initHotkeys () { 295 private initHotkeys () {
296 this.hotkeysService.add([ 296 this.hotkeysService.add([
297 new Hotkey(['/', 's'], (event: KeyboardEvent): boolean => { 297 new Hotkey([ '/', 's' ], (event: KeyboardEvent): boolean => {
298 document.getElementById('search-video').focus() 298 document.getElementById('search-video').focus()
299 return false 299 return false
300 }, undefined, $localize`Focus the search bar`), 300 }, undefined, $localize`Focus the search bar`),