mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-08 23:30:53 +00:00
4.19.4
* Fixed: Error loading bits configuration after a Twitch update changed the format, causing an exception that prevents the add-on from initializing fully.
This commit is contained in:
parent
09d4961eaf
commit
0c1e9c5204
3 changed files with 52 additions and 18 deletions
|
@ -513,8 +513,8 @@ export default class Room {
|
|||
return this.style.delete('bits');
|
||||
|
||||
const animated = this.manager.context.get('chat.bits.animated') ? 'animated' : 'static',
|
||||
theme = this.manager.context.get('theme.is-dark') ? 'DARK' : 'LIGHT',
|
||||
tt_theme = this.manager.context.get('theme.tooltips-dark') ? 'DARK' : 'LIGHT',
|
||||
theme = this.manager.context.get('theme.is-dark') ? 'dark' : 'light',
|
||||
tt_theme = this.manager.context.get('theme.tooltips-dark') ? 'dark' : 'light',
|
||||
out = [];
|
||||
|
||||
for(const key in this.bitsConfig)
|
||||
|
@ -529,7 +529,7 @@ export default class Room {
|
|||
tt_images = tiers[i].images[tt_theme][animated];
|
||||
|
||||
out.push(`.ffz-cheer[data-prefix="${prefix}"][data-tier="${i}"] {
|
||||
color: ${tiers[i].color};
|
||||
color: ${tiers[i].color || 'inherit'};
|
||||
background-image: url("${images[1]}");
|
||||
background-image: ${WEBKIT}image-set(
|
||||
url("${images[1]}") 1x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue