summaryrefslogtreecommitdiff
path: root/source/features/hide-navigation-hover-highlight.tsx
diff options
context:
space:
mode:
authorGravatar Federico <opensource@bfred.it> 2020-08-10 22:59:34 +0100
committerGravatar GitHub <noreply@github.com> 2020-08-10 22:59:34 +0100
commitf527259f797d18964483d2e065d13d4dfbe36200 (patch)
treeb87ae6c5f4d9b8ffde492f9f08713b7aa7e6eb64 /source/features/hide-navigation-hover-highlight.tsx
parent7462d64829c4c7b39d3c0f8c918e901e39447313 (diff)
downloadrefined-github-f527259f797d18964483d2e065d13d4dfbe36200.tar.gz
refined-github-f527259f797d18964483d2e065d13d4dfbe36200.tar.zst
refined-github-f527259f797d18964483d2e065d13d4dfbe36200.zip
Fix loading logic of features that can't run twice (#3442)
Diffstat (limited to 'source/features/hide-navigation-hover-highlight.tsx')
-rw-r--r--source/features/hide-navigation-hover-highlight.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/hide-navigation-hover-highlight.tsx b/source/features/hide-navigation-hover-highlight.tsx
index 9fea0712..cf159fc3 100644
--- a/source/features/hide-navigation-hover-highlight.tsx
+++ b/source/features/hide-navigation-hover-highlight.tsx
@@ -1,4 +1,6 @@
import './hide-navigation-hover-highlight.css';
+import onetime from 'onetime';
+
import features from '.';
const className = 'rgh-no-navigation-highlight';
@@ -16,6 +18,5 @@ void features.add({
screenshot: false
}, {
waitForDomReady: false,
- repeatOnAjax: false,
- init
+ init: onetime(init)
});