Skip to content

Commit

Permalink
Conditionalize the other navigator check.
Browse files Browse the repository at this point in the history
  • Loading branch information
rillian committed Dec 3, 2015
1 parent 58d0924 commit b89bfd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,8 @@
// compute things with such as if it overlaps or intersects with another Element.
// Can initialize it with either a StyleBox or another BoxPosition.
function BoxPosition(obj) {
var isIE8 = (/MSIE\s8\.0/).test(navigator.userAgent);
var isIE8 = (typeof navigator !== "undefined") &&
(/MSIE\s8\.0/).test(navigator.userAgent);

// Either a BoxPosition was passed in and we need to copy it, or a StyleBox
// was passed in and we need to copy the results of 'getBoundingClientRect'
Expand Down

0 comments on commit b89bfd0

Please sign in to comment.