fix print pdf scope exception
This commit is contained in:
parent
b7f480c908
commit
cca2a3cdf3
File diff suppressed because one or more lines are too long
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 New Issue