aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-07-16 12:37:38 -0400
committerAjay Ramachandran <[email protected]>2021-07-16 12:37:38 -0400
commit777f3a276927c178305b9c611e35e5bbc1fc034b (patch)
treed6631d00a8fc8bc2d726b5e3f6a669d1d9d858cb /src
parent797c9d67e4d82075d0fae0e9d63ebd0c4c982030 (diff)
downloadSponsorBlock-777f3a276927c178305b9c611e35e5bbc1fc034b.tar.gz
SponsorBlock-777f3a276927c178305b9c611e35e5bbc1fc034b.zip
Only show refresh button in popup if segments are found
Diffstat (limited to 'src')
-rw-r--r--src/popup.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/popup.ts b/src/popup.ts
index 1c8271ed..97fb1ae9 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -292,10 +292,12 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
if (request.found) {
PageElements.videoFound.innerHTML = chrome.i18n.getMessage("sponsorFound");
+ PageElements.refreshSegmentsButton.classList.remove("hidden");
displayDownloadedSponsorTimes(request);
} else {
PageElements.videoFound.innerHTML = chrome.i18n.getMessage("sponsor404");
+ PageElements.refreshSegmentsButton.classList.add("hidden");
}
}