diff --git a/popup/search-results.js b/popup/search-results.js index e4618b74..f4a05d1d 100755 --- a/popup/search-results.js +++ b/popup/search-results.js @@ -364,9 +364,12 @@ // Style has customizations installButton.classList.add('customize'); const customizeButton = $('.searchResult-customize', entry); + customizeButton.dataset.href = searchAPI.BASE_URL + userstyleSearchResult.url; customizeButton.classList.remove('hidden'); - customizeButton.href = searchAPI.BASE_URL + userstyleSearchResult.url; - customizeButton.onclick = handleEvent.openURLandHide; + customizeButton.onclick = event => { + event.stopPropagation(); + handleEvent.openURLandHide.call(customizeButton, event); + }; } /** Installs the current userstyleSearchResult into stylus. */