diff options
author | Ajay Ramachandran <[email protected]> | 2021-05-21 16:13:54 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-05-21 16:13:54 -0400 |
commit | 60b9266a2a6963d5b87d08cf12d9577f8f27d94d (patch) | |
tree | c2736ee565765c4e50ef722993aaee6341782517 /src | |
parent | 9392d16617d2d48abb6125c00e2ff6042cb7bebe (diff) | |
download | SponsorBlock-60b9266a2a6963d5b87d08cf12d9577f8f27d94d.tar.gz SponsorBlock-60b9266a2a6963d5b87d08cf12d9577f8f27d94d.zip |
Use different icons for cancel and upload error
Diffstat (limited to 'src')
-rw-r--r-- | src/content.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content.ts b/src/content.ts index 2abfdecf..caa0c728 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1104,7 +1104,7 @@ async function createButtons(): Promise<void> { // Add button if does not already exist in html createButton("startSponsor", "sponsorStart", () => closeInfoMenuAnd(() => startOrEndTimingNewSegment()), "PlayerStartIconSponsorBlocker256px.png"); - createButton("cancelSponsor", "sponsorCancel", () => closeInfoMenuAnd(() => cancelCreatingSegment()), "PlayerUploadFailedIconSponsorBlocker256px.png"); + createButton("cancelSponsor", "sponsorCancel", () => closeInfoMenuAnd(() => cancelCreatingSegment()), "PlayerCancelSegmentIconSponsorBlocker.svg"); createButton("info", "openPopup", openInfoMenu, "PlayerInfoIconSponsorBlocker256px.png"); createButton("delete", "clearTimes", () => closeInfoMenuAnd(() => clearSponsorTimes()), "PlayerDeleteIconSponsorBlocker256px.png"); createButton("submit", "SubmitTimes", submitSponsorTimes, "PlayerUploadIconSponsorBlocker256px.png"); @@ -1520,7 +1520,7 @@ async function sendSubmitMessage() { } else { // Show that the upload failed playerButtons.submit.button.style.animation = "unset"; - playerButtons.submit.image.src = chrome.extension.getURL("icons/PlayerUploadFailedIconSponsorBlocker256px.png"); + playerButtons.submit.image.src = chrome.extension.getURL("icons/PlayerUploadFailedIconSponsorBlocker.svg"); alert(utils.getErrorMessage(response.status, response.responseText)); } |