Bump localstorage key for podcast player (#19057)

This commit is contained in:
Fernando Valverde 2023-02-03 12:03:39 -06:00 committed by GitHub
parent bb7e193b3e
commit 605ebbfa3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}