From 4e839b3d78bc9edde6bdc1c634c244d743bdd547 Mon Sep 17 00:00:00 2001 From: Lee Sheng Long Date: Thu, 21 May 2020 19:21:08 +1000 Subject: [PATCH] fix slide notes printing --- js/controllers/notes.js | 2 +- js/controllers/print.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/controllers/notes.js b/js/controllers/notes.js index 542b1f1..8ec1d42 100644 --- a/js/controllers/notes.js +++ b/js/controllers/notes.js @@ -54,7 +54,7 @@ export default class Notes { */ updateVisibility() { - if( this.Reveal.getConfig().showNotes && this.hasNotes() ) { + if( this.Reveal.getConfig().showNotes && this.hasNotes() && !this.Reveal.print.isPrintingPDF() ) { this.Reveal.getRevealElement().classList.add( 'show-notes' ); } else { diff --git a/js/controllers/print.js b/js/controllers/print.js index c9d04b5..ed7da73 100644 --- a/js/controllers/print.js +++ b/js/controllers/print.js @@ -91,7 +91,7 @@ export default class Print { if( config.showNotes ) { // Are there notes for this slide? - let notes = getSlideNotes( slide ); + let notes = this.Reveal.getSlideNotes( slide ); if( notes ) { let notesSpacing = 8;