fix print pdf scope exception
This commit is contained in:
parent
b7f480c908
commit
cca2a3cdf3
3 changed files with 5 additions and 3 deletions
2
dist/reveal.esm.js
vendored
2
dist/reveal.esm.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js
vendored
2
dist/reveal.js
vendored
File diff suppressed because one or more lines are too long
|
@ -215,7 +215,9 @@ export default function( revealElement, options ) {
|
||||||
print.setupPDF();
|
print.setupPDF();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.addEventListener( 'load', print.setupPDF );
|
window.addEventListener( 'load', () => {
|
||||||
|
print.setupPDF();
|
||||||
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue