Bump localstorage key for podcast player (#19057)
This commit is contained in:
parent
bb7e193b3e
commit
605ebbfa3b
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ export function initializePodcastPlayback() {
|
|||
function currentAudioState() {
|
||||
try {
|
||||
const currentState = JSON.parse(
|
||||
localStorage.getItem('media_playback_state_v2'),
|
||||
localStorage.getItem('media_playback_state_v3'),
|
||||
);
|
||||
if (!currentState) {
|
||||
return newAudioState();
|
||||
|
|
@ -114,7 +114,7 @@ export function initializePodcastPlayback() {
|
|||
newState.muted = currentState.muted;
|
||||
newState.volume = currentState.volume;
|
||||
newState.duration = currentState.duration;
|
||||
localStorage.setItem('media_playback_state_v2', JSON.stringify(newState));
|
||||
localStorage.setItem('media_playback_state_v3', JSON.stringify(newState));
|
||||
return newState;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue