From 53fbd797fecdf6eb76e2df2e23509bc1158007d4 Mon Sep 17 00:00:00 2001 From: kaffem <29717789+kaffem@users.noreply.github.com> Date: Sat, 13 Feb 2021 19:29:33 +0100 Subject: [PATCH] added function return type --- src/javascript/enhancements/watch2getherHide.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/enhancements/watch2getherHide.ts b/src/javascript/enhancements/watch2getherHide.ts index baa6056..77a53ff 100644 --- a/src/javascript/enhancements/watch2getherHide.ts +++ b/src/javascript/enhancements/watch2getherHide.ts @@ -19,7 +19,7 @@ export function init(): void { }); } -function addAutohideListener() { +function addAutohideListener(): void { let playerElement = findPlayerElement(PLAYER_ID); let hideButton: HTMLButtonElement = document.getElementsByClassName('no-margin md-button md-ink-ripple layout-align-center-center layout-row')[0] as HTMLButtonElement; if (helper.assigned(playerElement) && helper.assigned(hideButton)) {