rename 'mode' config value to 'view'

This commit is contained in:
Hakim El Hattab
2023-09-20 16:11:31 +02:00
parent 0861b07618
commit f0950ba9ae
8 changed files with 19 additions and 19 deletions

View File

@@ -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';
}