diff options
author | teawithfruit <teawithfruit@gmail.com> | 2015-07-21 15:59:19 +0200 |
---|---|---|
committer | teawithfruit <teawithfruit@gmail.com> | 2015-07-21 15:59:19 +0200 |
commit | b7470fa3239bca8858ee215adf59118ed12fa581 (patch) | |
tree | cde4a78c7180801f37ee54ff58a267f05db80d28 | |
parent | 25da01ce41fd8222fb9236e36f75d426ffe3c80f (diff) | |
download | perl-software-in-gnu-guix-b7470fa3239bca8858ee215adf59118ed12fa581.tar perl-software-in-gnu-guix-b7470fa3239bca8858ee215adf59118ed12fa581.tar.gz |
solves early access error with video element
This will maybe solve the "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" error in firefox.
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index a0120b4..2b8476f 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2612,7 +2612,7 @@ // Start video playback var currentVideo = currentBackground.querySelector( 'video' ); if( currentVideo ) { - currentVideo.currentTime = 0; + if(currentVideo.currentTime > 0) currentVideo.currentTime = 0; currentVideo.play(); } |