Skip to content

Commit

Permalink
Merge branch 'navigator-gecko'
Browse files Browse the repository at this point in the history
  • Loading branch information
rillian committed Dec 3, 2015
2 parents 9b27cb6 + b89bfd0 commit 704a551
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 @@ -884,7 +884,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 704a551

Please sign in to comment.