fix screenshot no file error
This commit is contained in:
parent
8b1d85c3ca
commit
6e6d33abbe
1 changed files with 1 additions and 3 deletions
|
@ -326,8 +326,6 @@ const Map = {
|
|||
node.visited = !T
|
||||
})
|
||||
|
||||
var imageData = canvas.canvas.toDataURL()
|
||||
|
||||
var map = Active.Map
|
||||
|
||||
var today = new Date()
|
||||
|
@ -347,7 +345,7 @@ const Map = {
|
|||
|
||||
var downloadMessage = outdent`
|
||||
Captured map screenshot!
|
||||
<a href="${imageData.encodedImage}" download="${filename}">DOWNLOAD</a>`
|
||||
<a href="${canvas.canvas.toDataURL()}" download="${filename}">DOWNLOAD</a>`
|
||||
GlobalUI.notifyUser(downloadMessage)
|
||||
|
||||
canvas.canvas.toBlob(imageBlob => {
|
||||
|
|
Loading…
Reference in a new issue