mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Turned the PaleteBlock into an IIFE
This commit is contained in:
@@ -160,7 +160,7 @@ const ColorModule = (() => {
|
||||
const col = coloursList.children[i].style.backgroundColor;
|
||||
|
||||
if (col.includes("rgb")) {
|
||||
addColor(cssToHex(col));
|
||||
addColor(Color.cssToHex(col));
|
||||
}
|
||||
else {
|
||||
addColor(col);
|
||||
|
||||
Reference in New Issue
Block a user