Skip to content

Commit

Permalink
Merge pull request #5413 from avalonmediasystem/cjcolvar-patch-3
Browse files Browse the repository at this point in the history
Fix incorrect logic in localStorage detection
  • Loading branch information
cjcolvar authored Oct 10, 2023
2 parents 3cf72b5 + fa8a290 commit ed2158f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ class MEJSPlayer {
let jumpInterval = 5;
let startVolume = 1.0;
let startLanguage = '';
if (!this.localStorage) {
if (this.localStorage) {
startVolume = this.localStorage.getItem('startVolume') || 1.0;
startLanguage = this.localStorage.getItem('captions') || '';
// Set default quality value in localStorage
Expand Down

0 comments on commit ed2158f

Please sign in to comment.