mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added EditorState, moved editor mode management to that IIFE
This commit is contained in:
@@ -228,7 +228,7 @@ const ColorModule = (() => {
|
||||
event.target.parentElement.lastChild.classList.add('hidden');
|
||||
|
||||
//show jscolor picker, if basic mode is enabled
|
||||
if (pixelEditorMode == 'Basic')
|
||||
if (EditorState.getCurrentMode() == 'Basic')
|
||||
event.target.parentElement.firstChild.jscolor.show();
|
||||
else
|
||||
Dialogue.showDialogue("palette-block", false);
|
||||
|
||||
Reference in New Issue
Block a user