1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 16:10:55 +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 ) 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;
} }