Adjust Google re-order insertion position

Since we now take the parentNode of located Google search engine result containers, we need to adjust where we insert re-ordered results. Instead of prepending to parent node, we insert before the non-indie container.
pull/773/head
Kevin Payravi 2024-07-26 05:56:59 -05:00
parent 1c6efc0860
commit 84b78a29a2
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ async function reorderDestinationSearchResult(firstNonIndieResult, searchResult)
indieSearchResultContainer.classList.add('iwb-reordered');
// Prepend search results to first Fandom/Fextra/Neoseeker result
nonIndieSearchResultContainer.parentNode.prepend(indieSearchResultContainer);
nonIndieSearchResultContainer.parentNode.insertBefore(indieSearchResultContainer, nonIndieSearchResultContainer);
}
async function reorderSearchResults(searchResults, searchEngine, storage) {