mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56:55 +00:00
4.62.2
* Fixed: Issue with colors not being calculated correctly when colors are being processed. Hopefully this is the last bug in the colors rewrite. * Fixed: Incorrect PubSub event handling causing some events, notably point redemptions, to not appear correctly. Closes #1438. * Fixed: Issue where certain pop-up elements would not close correctly when clicking outside them.
This commit is contained in:
parent
d503243be1
commit
429553f5d4
5 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "frankerfacez",
|
"name": "frankerfacez",
|
||||||
"author": "Dan Salvato LLC",
|
"author": "Dan Salvato LLC",
|
||||||
"version": "4.62.1",
|
"version": "4.62.2",
|
||||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|
|
@ -3376,4 +3376,4 @@ export function formatBitsConfig(config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,7 +244,7 @@ class RGBAColor implements BaseColor {
|
||||||
}
|
}
|
||||||
|
|
||||||
toHex() {
|
toHex() {
|
||||||
const value = (this.r << 16) + (this.g << 8) + this.b;
|
const value = (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
||||||
return `#${value.toString(16).padStart(6, '0')}`;
|
return `#${value.toString(16).padStart(6, '0')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -823,19 +823,19 @@ export class ColorAdjuster {
|
||||||
if ( this._mode === -1 )
|
if ( this._mode === -1 )
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
else if ( this._mode === 0 )
|
|
||||||
return color;
|
|
||||||
|
|
||||||
if ( typeof color !== 'string' )
|
if ( typeof color !== 'string' )
|
||||||
color = color.toCSS();
|
color = color.toCSS();
|
||||||
|
|
||||||
|
if ( this._mode === 0 )
|
||||||
|
return color;
|
||||||
|
|
||||||
if ( ! color )
|
if ( ! color )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if ( this._cache.has(color) )
|
if ( this._cache.has(color) )
|
||||||
return this._cache.get(color);
|
return this._cache.get(color);
|
||||||
|
|
||||||
let rgb;
|
let rgb: RGBAColor;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
rgb = RGBAColor.fromCSS(color);
|
rgb = RGBAColor.fromCSS(color);
|
||||||
|
|
|
@ -79,12 +79,12 @@ export class PubSubEvent<TMessage = any> extends FFZEvent<RawPubSubEventData> {
|
||||||
_changed: boolean;
|
_changed: boolean;
|
||||||
|
|
||||||
// This is assigned in super()
|
// This is assigned in super()
|
||||||
prefix: string = null as any;
|
prefix: string;
|
||||||
trail: string = null as any;
|
trail: string;
|
||||||
event: {
|
event: {
|
||||||
topic: string;
|
topic: string;
|
||||||
message: string;
|
message: string;
|
||||||
} = null as any;
|
};
|
||||||
|
|
||||||
constructor(data: RawPubSubEventData) {
|
constructor(data: RawPubSubEventData) {
|
||||||
super(data);
|
super(data);
|
||||||
|
|
|
@ -454,7 +454,7 @@ export class ClickOutside {
|
||||||
this.cb = callback;
|
this.cb = callback;
|
||||||
|
|
||||||
this._fn = this.handleClick.bind(this);
|
this._fn = this.handleClick.bind(this);
|
||||||
document.documentElement.addEventListener('click', this.handleClick);
|
document.documentElement.addEventListener('click', this._fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue