Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
保存当前帧 Firefox 兼容性修复
Browse files Browse the repository at this point in the history
  • Loading branch information
journey-ad committed Dec 7, 2017
1 parent 97356a1 commit 277ac8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ function startDraw() {
if (window.Live2D.captureFrame) {
window.Live2D.captureFrame = false;
var link = document.createElement('a');
document.body.appendChild(link);
link.setAttribute("type", "hidden");
link.href = canvas.toDataURL();
link.download = window.Live2D.captureName || 'live2d.png';
link.click();
Expand Down

0 comments on commit 277ac8b

Please sign in to comment.