Skip to content

Commit

Permalink
Merge pull request #347 from rillian/navigator
Browse files Browse the repository at this point in the history
Conditionalize Navigator access
  • Loading branch information
rillian committed Dec 1, 2015
2 parents 789a540 + 45e3a53 commit 9b27cb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dist/vtt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* vtt.js - v0.12.1 (https://github.com/mozilla/vtt.js) built on 27-11-2015 */
/* vtt.js - v0.12.1 (https://github.com/mozilla/vtt.js) built on 30-11-2015 */

/**
* Copyright 2013 vtt.js Contributors
Expand Down Expand Up @@ -1215,7 +1215,8 @@
// Constructs the computed display state of the cue (a div). Places the div
// into the overlay which should be a block level element (usually a div).
function CueStyleBox(window, cue, styleOptions) {
var isIE8 = (/MSIE\s8\.0/).test(navigator.userAgent);
var isIE8 = (typeof navigator !== "undefined") &&
(/MSIE\s8\.0/).test(navigator.userAgent);
var color = "rgba(255, 255, 255, 1)";
var backgroundColor = "rgba(0, 0, 0, 0.8)";
var textShadow = "";
Expand Down
Loading

0 comments on commit 9b27cb6

Please sign in to comment.