LightBox: tslint exception for play() call which returns promise
This commit is contained in:
parent
4fa6a785f4
commit
fa18e2ba77
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ export class Lightbox extends React.Component<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.videoRef.paused) {
|
if (this.videoRef.paused) {
|
||||||
|
// tslint:disable-next-line no-floating-promises
|
||||||
this.videoRef.play();
|
this.videoRef.play();
|
||||||
} else {
|
} else {
|
||||||
this.videoRef.pause();
|
this.videoRef.pause();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue