Update Reveal.js min version compatibility check

This commit is contained in:
Antonin Stefanutti 2019-06-07 20:28:38 +02:00
parent 6df0cffa97
commit d16dbbe725
No known key found for this signature in database
GPG Key ID: 451D46E2047E7837

View File

@ -21,8 +21,8 @@ class Reveal {
// Let's delegate to the RISE plugin
return false;
}
if (!(typeof Reveal.isLastSlide === 'function')) {
console.log('Reveal JS plugin isn\'t compatible with reveal.js version < 2.3.0');
if (!(typeof Reveal.availableFragments === 'function')) {
console.log('Reveal JS plugin isn\'t compatible with reveal.js version < 2.4.0');
return false;
}
return true;