mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 14:50:56 +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 )
|
||||
return null;
|
||||
|
||||
const colorWithHighestPriority = val[0]
|
||||
|
||||
const colors = new Map;
|
||||
|
||||
for(const item of val) {
|
||||
const c = item.c || null,
|
||||
v = item.v;
|
||||
const c = colorWithHighestPriority.c || null,
|
||||
v = colorWithHighestPriority.v;
|
||||
|
||||
colors.set(v, c);
|
||||
}
|
||||
colors.set(v, c);
|
||||
|
||||
return colors;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue