Webpack build for branch 11.3-dev: 52c402faea

This commit is contained in:
Travis CI 2018-01-29 01:08:56 +00:00
parent 8b9603c8ac
commit 203873121a
2 changed files with 2 additions and 1 deletions

View file

@ -11771,6 +11771,7 @@ class ClientDataResolver {
static resolveColor(color) {
if (typeof color === 'string') {
if (color === 'RANDOM') return Math.floor(Math.random() * (0xFFFFFF + 1));
if (color === 'DEFAULT') return 0;
color = Constants.Colors[color] || parseInt(color.replace('#', ''), 16);
} else if (color instanceof Array) {
color = (color[0] << 16) + (color[1] << 8) + color[2];

File diff suppressed because one or more lines are too long