diff options
author | Ajay <[email protected]> | 2022-02-22 01:01:27 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-02-22 01:01:27 -0500 |
commit | 6e23650a99765cf15084a8d13c0af218fbd3af6a (patch) | |
tree | 6135964918fe7867177677c8d75d3c409888936f | |
parent | d6a0029b85d9f238335cf1e9d76c80443f2d2c79 (diff) | |
download | SponsorBlock-6e23650a99765cf15084a8d13c0af218fbd3af6a.tar.gz SponsorBlock-6e23650a99765cf15084a8d13c0af218fbd3af6a.zip |
Add category pill right away
Fix #1199
-rw-r--r-- | src/content.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content.ts b/src/content.ts index 0b8233dd..26a2b772 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1934,6 +1934,11 @@ async function sendSubmitMessage() { sponsorTimesSubmitting = []; updatePreviewBar(); + + const fullVideoSegment = sponsorTimes.filter((time) => time.actionType === ActionType.Full)[0]; + if (fullVideoSegment) { + categoryPill?.setSegment(fullVideoSegment); + } } else { // Show that the upload failed playerButtons.submit.button.style.animation = "unset"; |