Check availability of canvas & PDF before printing
This commit is contained in:
parent
8aa1c8102e
commit
f4ba0e342e
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@
|
|||
|
||||
function renderProgress() {
|
||||
var progressContainer = document.getElementById('mozPrintCallback-shim');
|
||||
if (canvases) {
|
||||
if (canvases && canvases.length) {
|
||||
var progress = Math.round(100 * index / canvases.length);
|
||||
var progressBar = progressContainer.querySelector('progress');
|
||||
var progressPerc = progressContainer.querySelector('.relative-progress');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue