fix: screenshot 无法获取 dataURL

`dataURL` 的获取在 `toBlob` 的回调方法中,原始方法触发 `screenshot` 时,传递的 `dataURL ` 始终为 `undefined`
This commit is contained in:
咸鱼大暴走 2020-08-13 10:56:08 +08:00 committed by GitHub
parent 5308445c93
commit 3c6f3c2469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -243,9 +243,8 @@ class Controller {
link.click();
document.body.removeChild(link);
URL.revokeObjectURL(dataURL);
this.player.events.trigger('screenshot', dataURL);
});
this.player.events.trigger('screenshot', dataURL);
});
}
}