From fe1fc4adcff470509cb5f001b93bd8b28c9a2af3 Mon Sep 17 00:00:00 2001 From: danis Date: Sun, 28 Apr 2024 09:16:23 +0300 Subject: [PATCH] food preference bugfix --- OpenFoodFactsPower.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenFoodFactsPower.user.js b/OpenFoodFactsPower.user.js index ddc5e32..8faf88f 100644 --- a/OpenFoodFactsPower.user.js +++ b/OpenFoodFactsPower.user.js @@ -1221,8 +1221,10 @@ ul#products_match_all > li > a > span { display: table-cell; width: 70%; vert loadASettingFromStorage('pus-rotation-buttons',toggleRotationButtons); loadASettingFromStorage('pus-hunger-games-logo-search',toggleHungerGamesButton); loadASettingFromStorage('pus-quick-categories',null); - listenToFoodPreferences(); }); + setTimeout(function(){ + listenToFoodPreferences(); + }, 5000); // Show an easier to read number of products