aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/popup.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-09-01 16:32:23 -0400
committerAjay <[email protected]>2022-09-01 16:32:23 -0400
commit9e08d6012c965e21f740dd94a0131e7ad4a1fd4a (patch)
tree9e068e7b674942e057621ef0a439211dd9dac04e /src/popup.ts
parent69c0fe1caf23d356e77922b252c6d99b2c5fbb53 (diff)
downloadSponsorBlock-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.ts7
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;