- Fix (Embedded editor): Workaround Chrome blocking issue

master
Brett Zamir 2018-07-18 22:37:47 -07:00
parent 7e9235504a
commit 6122d6d2f1
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ function exportPNG () {
'data:text/html;charset=utf-8,' + encodeURIComponent('<title>' + str + '</title><h1>' + str + '</h1>'),
'svg-edit-exportWindow'
);
svgCanvas.rasterExport('PNG', null, exportWindow.name);
svgCanvas.rasterExport('PNG', null, exportWindow && exportWindow.name);
});
}
@ -55,7 +55,7 @@ function exportPDF () {
'data:text/html;charset=utf-8,' + encodeURIComponent('<title>' + str + '</title><h1>' + str + '</h1>'),
'svg-edit-exportWindow'
);
svgCanvas.exportPDF(exportWindow.name);
svgCanvas.exportPDF(exportWindow && exportWindow.name);
});
}