Skip to content

Commit

Permalink
clenaup
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Dec 8, 2024
1 parent f1a3e60 commit 47fcda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/store/localStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const KEY_VIDEO_POSITION = 'videoPosition';

export const getStoredVideoPosition = () => {
let v = JSON.parse(localStorage.getItem(KEY_VIDEO_POSITION));
if (v === null || (v !== VIDEO_POSITION_AUTO && v !== VIDEO_POSITION_HORIZONTAL && v !== VIDEO_POSITION_VERTICAL && v !== VIDEO_POSITION_GALLERY)) {
if (v === null) {
console.log("Resetting videoPosition to default", VIDEO_POSITION_AUTO);
setStoredVideoPosition(VIDEO_POSITION_AUTO);
v = JSON.parse(localStorage.getItem(KEY_VIDEO_POSITION));
Expand Down

0 comments on commit 47fcda3

Please sign in to comment.