diff --git a/resource/js/truncate-search-results.js b/resource/js/truncate-search-results.js index 48277f6f6..175c2aa38 100644 --- a/resource/js/truncate-search-results.js +++ b/resource/js/truncate-search-results.js @@ -14,7 +14,7 @@ function truncateSearchResults () { link.style.right = '0' link.style.padding = '0' link.textContent = '... (' + countResultValues(result) + ')' - const backgroundColor = getComputedStyle(result).backgroundColor + const backgroundColor = window.getComputedStyle(result).backgroundColor link.style.backgroundColor = backgroundColor link.onclick = () => showAllResults(result) result.appendChild(link)