mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-10 16:10:55 +00:00
parent
472f9472ee
commit
3ea5ea9f00
1 changed files with 5 additions and 5 deletions
|
@ -480,14 +480,14 @@ export default class Chat extends Module {
|
||||||
if ( ! val || ! val.length )
|
if ( ! val || ! val.length )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
const colorWithHighestPriority = val[0]
|
||||||
|
|
||||||
const colors = new Map;
|
const colors = new Map;
|
||||||
|
|
||||||
for(const item of val) {
|
const c = colorWithHighestPriority.c || null,
|
||||||
const c = item.c || null,
|
v = colorWithHighestPriority.v;
|
||||||
v = item.v;
|
|
||||||
|
|
||||||
colors.set(v, c);
|
colors.set(v, c);
|
||||||
}
|
|
||||||
|
|
||||||
return colors;
|
return colors;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue