diff options
author | 2020-08-10 22:59:34 +0100 | |
---|---|---|
committer | 2020-08-10 22:59:34 +0100 | |
commit | f527259f797d18964483d2e065d13d4dfbe36200 (patch) | |
tree | b87ae6c5f4d9b8ffde492f9f08713b7aa7e6eb64 /source/features/hide-navigation-hover-highlight.tsx | |
parent | 7462d64829c4c7b39d3c0f8c918e901e39447313 (diff) | |
download | refined-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.tsx | 5 |
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) }); |