aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-09-02 11:57:37 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-09-02 11:57:37 +0100
commit75d38379b7bc93fba6eed7da17319ed6ffec35d1 (patch)
tree107d2834f6de36a4d28c68b1cbb8041939082b5a /js
parentde6def8cdcf54746fddd6028c48e0b4f6fceb78a (diff)
parentb7470fa3239bca8858ee215adf59118ed12fa581 (diff)
downloadperl-software-in-gnu-guix-75d38379b7bc93fba6eed7da17319ed6ffec35d1.tar
perl-software-in-gnu-guix-75d38379b7bc93fba6eed7da17319ed6ffec35d1.tar.gz
Merge pull request #1310 from teawithfruit/patch-1
solves early access error with video element
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 0a1e70f..913aa28 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2619,7 +2619,7 @@
// Start video playback
var currentVideo = currentBackground.querySelector( 'video' );
if( currentVideo ) {
- currentVideo.currentTime = 0;
+ if(currentVideo.currentTime > 0) currentVideo.currentTime = 0;
currentVideo.play();
}