Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Use the default value for line if set, otherwise use 'auto'.
  • Loading branch information
jsg2021 authored Apr 20, 2017
1 parent c77cd38 commit bc694b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
// Apply default values for any missing fields.
cue.region = settings.get("region", null);
cue.vertical = settings.get("vertical", "");
cue.line = settings.get("line", "auto");
cue.line = settings.get("line", cue.line || "auto");
cue.lineAlign = settings.get("lineAlign", "start");
cue.snapToLines = settings.get("snapToLines", true);
cue.size = settings.get("size", 100);
Expand Down

0 comments on commit bc694b7

Please sign in to comment.