We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cafb3c commit 6c89be9Copy full SHA for 6c89be9
src/exporter/image.ts
@@ -144,7 +144,7 @@ export async function exportToPng(fileNameFormat: string) {
144
* Chromium will not throw, we can only get an empty canvas
145
* Firefox will throw "DOMException: CanvasRenderingContext2D.scale: Canvas exceeds max size."
146
*/
147
- if (!canvas || dataUrl === 'data:,') {
+ if (!canvas || !dataUrl || dataUrl === 'data:,') {
148
if (currentPass > passLimit) return null
149
150
// 1.4 ^ 5 ~= 5.37, should be enough for most cases
0 commit comments