fix print pdf scope exception

This commit is contained in:
Hakim El Hattab committed 2020-05-06 22:04:01 +02:00
1 parent b7f480c908
commit cca2a3cdf3
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -215,7 +215,9 @@ export default function( revealElement, options ) {
print.setupPDF();
}
else {
window.addEventListener( 'load', print.setupPDF );
window.addEventListener( 'load', () => {
print.setupPDF();
} );
}
}