From c8b0d59508283ad172fff03078f8d164ecf9422a Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Sun, 17 Jul 2022 01:05:40 -0500 Subject: [PATCH] Only suggest up to 20 shifts --- .../Configuration/visualizer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js index ddd0345..75b2b5a 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js @@ -105,6 +105,9 @@ function findExactMatches() { shifts.push(shift); } + // Only suggest up to 20 shifts + shifts = shifts.slice(0, 20); + txtSuggested.textContent = "Suggested shifts: "; if (shifts.length === 0) { txtSuggested.textContent += "none available";