diff options
author | Ajay Ramachandran <[email protected]> | 2021-07-16 12:37:38 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-07-16 12:37:38 -0400 |
commit | 777f3a276927c178305b9c611e35e5bbc1fc034b (patch) | |
tree | d6631d00a8fc8bc2d726b5e3f6a669d1d9d858cb /src | |
parent | 797c9d67e4d82075d0fae0e9d63ebd0c4c982030 (diff) | |
download | SponsorBlock-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.ts | 2 |
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"); } } |