Skip to content

Commit 1b0b7ec

Browse files
committed
fixed #30
1 parent 7e7ba7d commit 1b0b7ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/formats/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function exportSpritesheet() {
120120
});
121121

122122
const base64Data = canvas.toDataURL().replace(/data(.*?),/, '');
123-
writeFile(filePath, Buffer.from(base64Data, 'base64'), (err, success) => {
123+
writeFile(filePath, Buffer.from(base64Data, 'base64'), (err) => {
124124
err && errorMsg('Error exporting spritesheet', String(err));
125125
});
126126
}

app/store/workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Workspace {
2323
};
2424
@action closeProject = () => {
2525
if (this.project) {
26-
this.project.cleanup();
26+
this.project.cleanup?.();
2727
this.project = undefined;
2828
this.projectPath = '';
2929
}

0 commit comments

Comments
 (0)