mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-13 18:14:33 +02:00
rename 'mode' config value to 'view'
This commit is contained in:
@@ -41,7 +41,7 @@ export default class Notes {
|
||||
if( this.Reveal.getConfig().showNotes &&
|
||||
this.element && this.Reveal.getCurrentSlide() &&
|
||||
!this.Reveal.isReaderMode() &&
|
||||
!this.Reveal.isPrintMode()
|
||||
!this.Reveal.isPrinting()
|
||||
) {
|
||||
this.element.innerHTML = this.getSlideNotes() || '<span class="notes-placeholder">No notes on this slide.</span>';
|
||||
}
|
||||
@@ -59,7 +59,7 @@ export default class Notes {
|
||||
if( this.Reveal.getConfig().showNotes &&
|
||||
this.hasNotes() &&
|
||||
!this.Reveal.isReaderMode() &&
|
||||
!this.Reveal.isPrintMode()
|
||||
!this.Reveal.isPrinting()
|
||||
) {
|
||||
this.Reveal.getRevealElement().classList.add( 'show-notes' );
|
||||
}
|
||||
|
@@ -230,12 +230,7 @@ export default class Print {
|
||||
*/
|
||||
isActive() {
|
||||
|
||||
if( typeof this._isPrintMode === 'undefined' ) {
|
||||
this._isPrintMode = this.Reveal.getConfig().mode === 'pdf' ||
|
||||
( /print-pdf/gi ).test( window.location.search );
|
||||
}
|
||||
|
||||
return this._isPrintMode;
|
||||
return this.Reveal.getConfig().view === 'print';
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user