解决下载器浏览器适配问题
This commit is contained in:
parent
c3b0d9a70f
commit
ff63ca515a
|
@ -42,8 +42,6 @@ export function saveImg(filename, content, width, height) {
|
|||
|
||||
let img = document.createElement('img');
|
||||
|
||||
// New window for the image when it's loaded
|
||||
if(!isChrome()) window.open('', 'download');
|
||||
|
||||
img.onload = () => {
|
||||
ctx.fillStyle = 'white'
|
||||
|
|
Loading…
Reference in New Issue