mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-12 17:10:54 +00:00
Make sure settings actually work.
This commit is contained in:
parent
0e939e30ee
commit
ef3f18081c
2 changed files with 22 additions and 22 deletions
|
@ -1087,7 +1087,7 @@ FFZ.settings_info.chatter_count = {
|
|||
|
||||
on_update: function(val) {
|
||||
if ( this._cindex )
|
||||
this._cindex.ffzUpdateChatters();
|
||||
this._cindex.ffzUpdateMetadata('chatters');
|
||||
|
||||
if ( ! val || ! this.rooms )
|
||||
return;
|
||||
|
@ -1096,7 +1096,7 @@ FFZ.settings_info.chatter_count = {
|
|||
for(var room_id in this.rooms)
|
||||
this.rooms.hasOwnProperty(room_id) && this.rooms[room_id].room && this.rooms[room_id].room.ffzInitChatterCount();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
FFZ.settings_info.channel_views = {
|
||||
|
@ -1150,7 +1150,7 @@ FFZ.settings_info.stream_host_button = {
|
|||
if ( this._cindex )
|
||||
this._cindex.ffzUpdateHostButton();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
FFZ.settings_info.stream_uptime = {
|
||||
|
@ -1172,9 +1172,9 @@ FFZ.settings_info.stream_uptime = {
|
|||
help: 'Display the stream uptime under a channel by the viewer count.',
|
||||
on_update: function(val) {
|
||||
if ( this._cindex )
|
||||
this._cindex.ffzUpdateUptime();
|
||||
this._cindex.ffzUpdateMetadata('uptime');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
FFZ.settings_info.stream_title = {
|
||||
|
@ -1190,7 +1190,7 @@ FFZ.settings_info.stream_title = {
|
|||
if ( this._cindex )
|
||||
this._cindex.ffzFixTitle();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
FFZ.settings_info.channel_bar_bottom = {
|
||||
|
|
|
@ -122,7 +122,7 @@ metadata.host = {
|
|||
|
||||
order: 98,
|
||||
label: function(user, channel_id, hosting_id) {
|
||||
if ( ! user || user.login === channel_id )
|
||||
if ( ! this.settings.stream_host_button || ! user || user.login === channel_id )
|
||||
return null;
|
||||
|
||||
return channel_id === hosting_id ? 'Unhost' : 'Host';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue