Fix image export bug on multiplayer mode (#1130)
This commit is contained in:
parent
55a8831a6b
commit
e2a13d5992
1 changed files with 2 additions and 1 deletions
|
@ -1141,6 +1141,7 @@ export class TLDR {
|
|||
|
||||
const width = +svg.getAttribute('width')!
|
||||
const height = +svg.getAttribute('height')!
|
||||
const svgSrc = svg.lastElementChild!.getAttribute('xlink:href')!
|
||||
|
||||
if (!svgString) return
|
||||
|
||||
|
@ -1171,7 +1172,7 @@ export class TLDR {
|
|||
console.warn('Could not convert that SVG to an image.')
|
||||
}
|
||||
|
||||
image.src = dataUrl
|
||||
image.src = svgSrc.includes('data:') ? dataUrl : svgSrc
|
||||
})
|
||||
|
||||
const blob = await new Promise<Blob>((resolve) =>
|
||||
|
|
Loading…
Reference in a new issue