From f527259f797d18964483d2e065d13d4dfbe36200 Mon Sep 17 00:00:00 2001
From: Federico <opensource@bfred.it>
Date: Mon, 10 Aug 2020 22:59:34 +0100
Subject: Fix loading logic of features that can't run twice (#3442)

---
 source/features/hide-navigation-hover-highlight.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'source/features/hide-navigation-hover-highlight.tsx')

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)
 });
-- 
cgit v1.2.3

