forked from OctoPrint/OctoPrint
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
is crashing because of 'probably' this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=700533
'''
source.onload = function () {
renderCanvasContext.drawImage(source, 0, 0, renderCanvas.width, renderCanvas.height);
// place fill bitmap into svg
var fillBitmap = renderCanvas.toDataURL("image/png");
if(typeof callback === 'function'){
callback(fillBitmap);
}
renderCanvas.remove();
};
// catch browsers without native svg support
source.onerror = function() {
console.error("Can't export! Maybe your browser doesn't support native SVG. Sorry.");
};
};
'''
is running into the onerror case.
TODO: check if svg width and height is properly set and read the bug report for possible workarounds.