You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
392 B
18 lines
392 B
4 years ago
|
(function(root) {
|
||
|
var vttjs = root.vttjs = {};
|
||
|
var cueShim = vttjs.VTTCue;
|
||
|
var regionShim = vttjs.VTTRegion;
|
||
|
var oldVTTCue = root.VTTCue;
|
||
|
var oldVTTRegion = root.VTTRegion;
|
||
|
|
||
|
vttjs.shim = function() {
|
||
|
vttjs.VTTCue = cueShim;
|
||
|
vttjs.VTTRegion = regionShim;
|
||
|
};
|
||
|
|
||
|
vttjs.restore = function() {
|
||
|
vttjs.VTTCue = oldVTTCue;
|
||
|
vttjs.VTTRegion = oldVTTRegion;
|
||
|
};
|
||
|
}(this));
|