aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/popup.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-09-24 22:33:12 -0400
committerAjay <[email protected]>2022-09-24 22:33:12 -0400
commit280127c9afa660edfd210a8d1c1708af4383c3e3 (patch)
tree172af8cb39dfc4b47f7031e43d76eed43c579b51 /src/popup.ts
parentda35e889f2d4d14395f0d4e2e857bd66f7e1a98a (diff)
downloadSponsorBlock-280127c9afa660edfd210a8d1c1708af4383c3e3.tar.gz
SponsorBlock-280127c9afa660edfd210a8d1c1708af4383c3e3.zip
Add tooltip to skip segment button
Diffstat (limited to 'src/popup.ts')
-rw-r--r--src/popup.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/popup.ts b/src/popup.ts
index c903c7a0..ece79a66 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -674,6 +674,8 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
skipButton.id = "sponsorTimesSkipButtonContainer" + UUID;
skipButton.className = "voteButton";
skipButton.src = chrome.runtime.getURL("icons/skip.svg");
+ skipButton.title = actionType === ActionType.Chapter ? chrome.i18n.getMessage("playChapter")
+ : chrome.i18n.getMessage("skipSegment");
skipButton.addEventListener("click", () => skipSegment(actionType, UUID, skipButton));
votingButtons.addEventListener("dblclick", () => skipSegment(actionType, UUID));