1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 14:50:56 +00:00

fix the wrong profile order priority on highlight settings

closes #908
This commit is contained in:
Gabriel Duarte 2020-09-25 04:02:22 +02:00
parent 472f9472ee
commit 3ea5ea9f00

View file

@ -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;
}