mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixed small bug with transparent color in palette
This commit is contained in:
parent
0a2e2217c9
commit
9f36462d96
@ -36,7 +36,7 @@ pskl.Palette = (function() {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
var addColorToPalette_ = function (color) {
|
var addColorToPalette_ = function (color) {
|
||||||
if (paletteColors.indexOf(color) == -1) {
|
if (paletteColors.indexOf(color) == -1 && color != Constants.TRANSPARENT_COLOR) {
|
||||||
var colorEl = document.createElement("li");
|
var colorEl = document.createElement("li");
|
||||||
colorEl.className = "palette-color";
|
colorEl.className = "palette-color";
|
||||||
colorEl.setAttribute("data-color", color);
|
colorEl.setAttribute("data-color", color);
|
||||||
|
Loading…
Reference in New Issue
Block a user