mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 02:16:54 +00:00
Removed Firefox update warning. Made styles attempt to re-downlaod with new URLs upon error due to CDN issues. Made viewer list sorting optional. Added safety checks to API for non-global sets.
This commit is contained in:
parent
acc0010247
commit
a7f6e0b63f
6 changed files with 30 additions and 13 deletions
|
@ -1,6 +1,20 @@
|
|||
var FFZ = window.FrankerFaceZ;
|
||||
|
||||
|
||||
// --------------------
|
||||
// Settings
|
||||
// --------------------
|
||||
|
||||
FFZ.settings_info.sort_viewers = {
|
||||
type: "boolean",
|
||||
value: true,
|
||||
|
||||
category: "Chat Appearance",
|
||||
name: "Sort Viewer List",
|
||||
help: "Make sure the viewer list is alphabetically sorted and place the Broadcaster in their own category."
|
||||
};
|
||||
|
||||
|
||||
// --------------------
|
||||
// Initialization
|
||||
// --------------------
|
||||
|
@ -19,6 +33,9 @@ FFZ.prototype._modify_viewers = function(controller) {
|
|||
controller.reopen({
|
||||
lines: function() {
|
||||
var viewers = this._super();
|
||||
if ( ! f.settings.sort_viewers )
|
||||
return viewers;
|
||||
|
||||
try {
|
||||
var categories = [],
|
||||
data = {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue