Skip to content

Commit

Permalink
fix(VgScrubBarBufferingTimeComponent): fix 'Cannot read property of u…
Browse files Browse the repository at this point in the history
…ndefined'
  • Loading branch information
IxquitilisSaid committed Nov 11, 2021
1 parent 49e5f1e commit 2d72f89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class VgScrubBarBufferingTimeComponent implements OnInit, OnDestroy {
getBufferTime() {
let bufferTime = '0%';

if (this.target && this.target.buffer && this.target.buffered.length) {
if (this.target?.buffered?.length) {
if (this.target.time.total === 0) {
bufferTime = '0%';
} else {
Expand Down
12 changes: 6 additions & 6 deletions libs/ngx-videogular/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "@videogular/ngx-videogular",
"version": "5.0.0",
"version": "5.0.1",
"description": "The HTML5 video player for Angular 2 and successor to videogular2",
"license": "MIT",
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"peerDependencies": {
"@angular/common": ">=8.0.0 <13.0.0",
"@angular/core": ">=8.0.0 <13.0.0",
"@angular/platform-browser-dynamic": ">=8.0.0 <13.0.0",
"core-js": ">=2.5.4 <=3.15.1",
"@angular/common": ">=8.0.0",
"@angular/core": ">=8.0.0",
"@angular/platform-browser-dynamic": ">=8.0.0",
"core-js": ">=2.5.4",
"rxjs": ">=6.5.4",
"zone.js": ">=0.10.2 <=0.11.4"
"zone.js": ">=0.10.2"
},
"dependencies": {
"tslib": "^1.11.1 || ^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-videogular",
"version": "5.0.0",
"version": "5.0.1",
"license": "MIT",
"description": "The HTML5 video player for Angular 2 and successor to videogular2",
"author": {
Expand Down

0 comments on commit 2d72f89

Please sign in to comment.