mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-06 06:10:54 +00:00
3.5.31 to 3.5.36. Added Portrait Mode. Fixed missing Op button on mod cards. Changed Feature Friday code to facilitate events without an associated channel, like Halloween. Fixed Stream Latency breaking on a broken player function. Added a simple JS API to let other extensions add emoticons to FFZ.
This commit is contained in:
parent
f62132cc7e
commit
d934508b04
21 changed files with 616 additions and 96 deletions
|
@ -448,6 +448,10 @@ FFZ.prototype.setup_mod_card = function() {
|
|||
|
||||
is_mod = controller.get('cardInfo.isModeratorOrHigher'),
|
||||
|
||||
chat = window.App && App.__container__.lookup('controller:chat'),
|
||||
user = f.get_user(),
|
||||
is_broadcaster = user && chat && chat.get('currentRoom.id') === user.login,
|
||||
|
||||
user_id = controller.get('cardInfo.user.id'),
|
||||
alias = f.aliases[user_id];
|
||||
|
||||
|
@ -633,9 +637,7 @@ FFZ.prototype.setup_mod_card = function() {
|
|||
// More Fixing Other Buttons
|
||||
var op_btn = el.querySelector('button.mod');
|
||||
if ( op_btn ) {
|
||||
var is_owner = controller.get('cardInfo.isChannelOwner'),
|
||||
user = ffz.get_user();
|
||||
can_op = is_owner || (user && user.is_admin) || (user && user.is_staff);
|
||||
var can_op = is_broadcaster || (user && user.is_admin) || (user && user.is_staff);
|
||||
|
||||
if ( ! can_op )
|
||||
op_btn.parentElement.removeChild(op_btn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue