mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed palette loading from lpe file
This commit is contained in:
parent
bc34208d01
commit
43abd38ebf
@ -22,6 +22,10 @@ document.getElementById('open-image-browse-holder').addEventListener('change', f
|
||||
let dictionary = JSON.parse(e.target.result);
|
||||
let mode = dictionary['editorMode'] == 'Advanced' ? 'Basic' : 'Advanced';
|
||||
newPixel(dictionary['canvasWidth'], dictionary['canvasHeight'], mode, dictionary);
|
||||
|
||||
for (let i=0; i<dictionary['color' + i] != null; i++) {
|
||||
addColor(dictionary['color'+i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
8613
package-lock.json
generated
8613
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user