Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
misteroneill committed Sep 29, 2016
1 parent ef19623 commit f693dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tracks/text-track-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class TextTrackSettings extends Component {
const values = this.getValues();

try {
if (values) {
if (Object.keys(values).length) {
window.localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(values));
} else {
window.localStorage.removeItem(LOCAL_STORAGE_KEY);
Expand Down

0 comments on commit f693dd3

Please sign in to comment.