mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fix canvasSize undefined
This commit is contained in:
parent
45016fbea1
commit
1a6b8320e1
@ -27,10 +27,11 @@ const FileManager = (() => {
|
||||
|
||||
function openPixelExportWindow() {
|
||||
let selectedPalette = Util.getText('palette-button');
|
||||
|
||||
|
||||
if (selectedPalette != 'Choose a palette...'){
|
||||
var paletteAbbreviation = palettes[selectedPalette].name;
|
||||
var fileName = 'pixel-'+paletteAbbreviation+'-'+canvasSize[0]+'x'+canvasSize[1]+'.png';
|
||||
var fileName = 'pixel-'+paletteAbbreviation+'-'+currFile.canvasSize[0]+'x'+currFile.canvasSize[1]+'.png';
|
||||
} else {
|
||||
var fileName = 'pixel-'+currFile.canvasSize[0]+'x'+currFile.canvasSize[1]+'.png';
|
||||
selectedPalette = 'none';
|
||||
|
Loading…
Reference in New Issue
Block a user