aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorteawithfruit <teawithfruit@gmail.com>2015-07-21 15:59:19 +0200
committerteawithfruit <teawithfruit@gmail.com>2015-07-21 15:59:19 +0200
commitb7470fa3239bca8858ee215adf59118ed12fa581 (patch)
treecde4a78c7180801f37ee54ff58a267f05db80d28 /js
parent25da01ce41fd8222fb9236e36f75d426ffe3c80f (diff)
downloadperl-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.
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
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();
}