Skip to content

Commit 992c505

Browse files
committed
fix(markers-display): src without marker
When loading a source that did not contain a marker, the `loadMarkers` function threw an error because it was trying to add a component that did not exist. - rename child component name - deletes `browser.js` which is no longer required - update `package` verion
1 parent 667b61b commit 992c505

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cassettator.js",
3-
"version": "0.69.420",
3+
"version": "0.69.42035",
44
"description": "A collection of video.js components and plugins",
55
"author": "amtins <amtins.dev@gmail.com>",
66
"license": "MIT",

src/browser.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/markers/src/markers-display.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ class MarkersDisplay extends videojs.getComponent('component') {
7575
);
7676

7777
if (!markersTrack) {
78-
this.addChild('marker', {
78+
this.addChild('marker-empty', {
7979
className: 'marker-empty',
80+
componentClass: 'markerDisplay',
8081
startTime: 0,
8182
endTime: this.player().duration(),
8283
});

0 commit comments

Comments
 (0)