Explorar el Código

fix slide notes printing

Lee Sheng Long hace 5 años
padre
commit
4e839b3d78
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      js/controllers/notes.js
  2. 1 1
      js/controllers/print.js

+ 1 - 1
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 {

+ 1 - 1
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;