Skip to content

Commit

Permalink
Bug fix for CSS hex colors without # prefix
Browse files Browse the repository at this point in the history
Chrome (and maybe other browsers) no longer allow hex colors without the '#' prefix, so the alteration grid was displaying as all-black.
  • Loading branch information
pearcetm committed Dec 14, 2020
1 parent 7db3c5b commit 14a7aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jscomut.js
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ function Comut() {
$('.alteration-config').each(function(i,e){
e=$(e);
var alteration = e.data('alteration');
_this.options.mutTypeEncoding[alteration].color=e.find('.colorpicker').val();
_this.options.mutTypeEncoding[alteration].color='#'+e.find('.colorpicker').val();
_this.options.mutTypeEncoding[alteration].text = e.find('.alteration-legend').val();
});

Expand Down

0 comments on commit 14a7aea

Please sign in to comment.