File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,18 @@ export const PopupComponent = () => {
103
103
< button id = "refreshSegmentsButton" title = { chrome . i18n . getMessage ( "refreshSegments" ) } onClick = { ( e ) => {
104
104
const stopAnimation = AnimationUtils . applyLoadingAnimation ( e . currentTarget , 0.3 ) ;
105
105
106
- loadSegments ( {
107
- updating : true ,
108
- setStatus,
109
- setChannelWhitelisted,
110
- setVideoID,
111
- setCurrentTime,
112
- setSegments,
113
- setLoopedChapter
114
- } ) . then ( ( ) => stopAnimation ( ) ) ;
106
+ sendMessage ( { message : "refreshSegments" } ) . then ( ( ) => {
107
+ loadSegments ( {
108
+ updating : true ,
109
+ setStatus,
110
+ setChannelWhitelisted,
111
+ setVideoID,
112
+ setCurrentTime,
113
+ setSegments,
114
+ setLoopedChapter
115
+ } ) . then ( ( ) => stopAnimation ( ) ) ;
116
+ } ) ;
117
+
115
118
} } >
116
119
< img src = "/icons/refresh.svg" alt = "Refresh icon" id = "refreshSegments" />
117
120
</ button >
You can’t perform that action at this time.
0 commit comments