mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Fix refresh button in popup
This commit is contained in:
@@ -103,6 +103,7 @@ export const PopupComponent = () => {
|
||||
<button id="refreshSegmentsButton" title={chrome.i18n.getMessage("refreshSegments")} onClick={(e) => {
|
||||
const stopAnimation = AnimationUtils.applyLoadingAnimation(e.currentTarget, 0.3);
|
||||
|
||||
sendMessage({ message: "refreshSegments" }).then(() => {
|
||||
loadSegments({
|
||||
updating: true,
|
||||
setStatus,
|
||||
@@ -112,6 +113,8 @@ export const PopupComponent = () => {
|
||||
setSegments,
|
||||
setLoopedChapter
|
||||
}).then(() => stopAnimation());
|
||||
});
|
||||
|
||||
}}>
|
||||
<img src="/icons/refresh.svg" alt="Refresh icon" id="refreshSegments" />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user