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
+1 -2
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);
});
}
}