diff options
author | Ajay <[email protected]> | 2022-09-01 16:32:23 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-09-01 16:32:23 -0400 |
commit | 9e08d6012c965e21f740dd94a0131e7ad4a1fd4a (patch) | |
tree | 9e068e7b674942e057621ef0a439211dd9dac04e /src/popup.ts | |
parent | 69c0fe1caf23d356e77922b252c6d99b2c5fbb53 (diff) | |
download | SponsorBlock-9e08d6012c965e21f740dd94a0131e7ad4a1fd4a.tar.gz SponsorBlock-9e08d6012c965e21f740dd94a0131e7ad4a1fd4a.zip |
Fix export/import not appearing without segments and without chapter enabled
Diffstat (limited to 'src/popup.ts')
-rw-r--r-- | src/popup.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/popup.ts b/src/popup.ts index e357034c..c32fb978 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -527,12 +527,9 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { } if (downloadedTimes.length > 0) { - PageElements.issueReporterImportExport.classList.remove("hidden"); - if (utils.getCategorySelection("chapter")?.option === CategorySkipOption.ShowOverlay) { - PageElements.importSegmentsButton.classList.remove("hidden"); - } + PageElements.exportSegmentsButton.classList.remove("hidden"); } else { - PageElements.issueReporterImportExport.classList.add("hidden"); + PageElements.exportSegmentsButton.classList.add("hidden"); } const isVip = Config.config.isVip; |