summaryrefslogtreecommitdiff
path: root/source/features/hide-navigation-hover-highlight.tsx
diff options
context:
space:
mode:
authorGravatar Nick Taylor <nick@iamdeveloper.com> 2019-04-21 01:48:07 -0400
committerGravatar Federico Brigante <github@bfred.it> 2019-04-21 13:48:07 +0800
commit9cdb7b377fef47e621a0a0cf5c1df321f1060605 (patch)
treec4c7eea04da66d38ebbf0b8509e4cd2a17c34023 /source/features/hide-navigation-hover-highlight.tsx
parentdea7e47bcf61640f4dee9e195fed0ad1ae938781 (diff)
downloadrefined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.tar.gz
refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.tar.zst
refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.zip
Meta: Add explicit return types on all functions (#1943)
Co-authored-by: Federico Brigante <github@bfred.it>
Diffstat (limited to 'source/features/hide-navigation-hover-highlight.tsx')
-rw-r--r--source/features/hide-navigation-hover-highlight.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/hide-navigation-hover-highlight.tsx b/source/features/hide-navigation-hover-highlight.tsx
index d254c1bc..20f2ce57 100644
--- a/source/features/hide-navigation-hover-highlight.tsx
+++ b/source/features/hide-navigation-hover-highlight.tsx
@@ -11,7 +11,7 @@ import features from '../libs/features';
const className = 'rgh-no-navigation-highlight';
-function init() {
+function init(): void {
document.body.classList.add(className);
document.body.addEventListener('navigation:keydown', () => {
document.body.classList.remove(className);