Add "keepalive" resource. It was causing issues in Firefox when using the dataProvider
This commit is contained in:
@@ -256,7 +256,9 @@ const Player = () => {
|
||||
const onAudioEnded = useCallback(
|
||||
(currentPlayId, audioLists, info) => {
|
||||
dispatch(currentPlaying(info))
|
||||
dataProvider.getOne('keepalive', { id: info.trackId })
|
||||
dataProvider
|
||||
.getOne('keepalive', { id: info.trackId })
|
||||
.catch((e) => console.log('Keepalive error:', e))
|
||||
},
|
||||
[dispatch, dataProvider]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user