1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-07-30 03:10:37 +02:00

fix exception when navigating decks on mobile browsers #3539

This commit is contained in:
Hakim El Hattab
2023-11-30 08:41:32 +01:00
parent 9d491c6d2f
commit bf285afcf2
5 changed files with 6 additions and 6 deletions

View File

@@ -801,8 +801,8 @@ export default class ScrollView {
if( page.active ) {
page.active = false;
page.slideElement.classList.remove( 'present' );
page.backgroundElement.classList.remove( 'present' );
if( page.slideElement ) page.slideElement.classList.remove( 'present' );
if( page.backgroundElement ) page.backgroundElement.classList.remove( 'present' );
}