chore: Update eslint
This commit is contained in:
@@ -38,8 +38,13 @@
|
||||
// Prevents the SVG size of the interface from being changed
|
||||
svg = svg.cloneNode(true) as HTMLElement;
|
||||
}
|
||||
height && svg?.setAttribute('height', `${height}px`);
|
||||
width && svg?.setAttribute('width', `${width}px`); // Workaround https://stackoverflow.com/questions/28690643/firefox-error-rendering-an-svg-image-to-html5-canvas-with-drawimage
|
||||
if (height) {
|
||||
svg?.setAttribute('height', `${height}px`);
|
||||
}
|
||||
if (width) {
|
||||
svg?.setAttribute('width', `${width}px`);
|
||||
}
|
||||
// Workaround https://stackoverflow.com/questions/28690643/firefox-error-rendering-an-svg-image-to-html5-canvas-with-drawimage
|
||||
|
||||
if (!svg) {
|
||||
svg = getSvgElement();
|
||||
|
||||
Reference in New Issue
Block a user