mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-20 03:51:26 +03:00
Add "keepalive" resource. It was causing issues in Firefox when using the dataProvider
This commit is contained in:
parent
92ba658606
commit
5137407377
@ -110,6 +110,7 @@ const Admin = (props) => {
|
|||||||
<Resource name="albumSong" />,
|
<Resource name="albumSong" />,
|
||||||
<Resource name="translation" />,
|
<Resource name="translation" />,
|
||||||
<Resource name="playlistTrack" />,
|
<Resource name="playlistTrack" />,
|
||||||
|
<Resource name="keepalive" />,
|
||||||
|
|
||||||
<Player />,
|
<Player />,
|
||||||
]}
|
]}
|
||||||
|
@ -256,7 +256,9 @@ const Player = () => {
|
|||||||
const onAudioEnded = useCallback(
|
const onAudioEnded = useCallback(
|
||||||
(currentPlayId, audioLists, info) => {
|
(currentPlayId, audioLists, info) => {
|
||||||
dispatch(currentPlaying(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]
|
[dispatch, dataProvider]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user