mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-29 15:55:33 +00:00
An update!
This commit is contained in:
parent
6264da62fc
commit
b184fc74b2
15 changed files with 905 additions and 125 deletions
|
@ -82,8 +82,13 @@ FFZ.prototype.build_ui_popup = function(view) {
|
|||
continue;
|
||||
|
||||
var page = FFZ.menu_pages[key];
|
||||
if ( !page || (page.hasOwnProperty("visible") && (!page.visible || (typeof page.visible == "function" && !page.visible.bind(this)()))) )
|
||||
try {
|
||||
if ( !page || (page.hasOwnProperty("visible") && (!page.visible || (typeof page.visible == "function" && !page.visible.bind(this)(view)))) )
|
||||
continue;
|
||||
} catch(err) {
|
||||
this.error("menu_pages " + key + " visible: " + err);
|
||||
continue;
|
||||
}
|
||||
|
||||
menu_pages.push([page.sort_order || 0, key, page]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue