mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-30 16:18:31 +00:00
3.5.346. Pass the modifier flag in from API emote sets. (Maybe just refactor how those emotes are treated entirely?) Fix emote duplication in the emote menu extension for people who use that.
This commit is contained in:
parent
748c437a57
commit
5d3ba8778c
5 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
<div class="list-header">3.5.346 <time datetime="2016-10-25">(2016-10-25)</time></div>
|
||||||
|
<ul class="chat-menu-content menu-side-padding">
|
||||||
|
<li>API Fixed: Emoticons' <code>modifier</code> flags were not being accepted.</li>
|
||||||
|
<li>Fixed: Do not register FFZ emotes with the Emote Menu extension's API when BTTV is present to avoid duplication.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<div class="list-header">3.5.345 <time datetime="2016-10-23">(2016-10-23)</time></div>
|
<div class="list-header">3.5.345 <time datetime="2016-10-23">(2016-10-23)</time></div>
|
||||||
<ul class="chat-menu-content menu-side-padding">
|
<ul class="chat-menu-content menu-side-padding">
|
||||||
<li>Fixed: Bug preventing FFZ emoticons from working on browsers not supporting <code>Object.assign</code>.</li>
|
<li>Fixed: Bug preventing FFZ emoticons from working on browsers not supporting <code>Object.assign</code>.</li>
|
||||||
|
|
|
@ -332,6 +332,8 @@ FFZ.prototype.modify_chat_input = function(component) {
|
||||||
ffz_chatters: [],
|
ffz_chatters: [],
|
||||||
|
|
||||||
ffz_init: function() {
|
ffz_init: function() {
|
||||||
|
// We don't want to store references to conversation input handlers.
|
||||||
|
if ( ! ConvoInput || ! (this.parentView instanceof ConvoInput) )
|
||||||
f._inputv = this;
|
f._inputv = this;
|
||||||
|
|
||||||
var s = this._ffz_minimal_style = document.createElement('style');
|
var s = this._ffz_minimal_style = document.createElement('style');
|
||||||
|
|
|
@ -209,6 +209,7 @@ API.prototype._load_set = function(real_id, set_id, data) {
|
||||||
|
|
||||||
new_emote.css = emote.css;
|
new_emote.css = emote.css;
|
||||||
new_emote.margins = emote.margins;
|
new_emote.margins = emote.margins;
|
||||||
|
new_emote.modifier = emote.modifier;
|
||||||
|
|
||||||
new_emote.srcSet = emote.urls[1] + ' 1x';
|
new_emote.srcSet = emote.urls[1] + ' 1x';
|
||||||
new_emote.urls[1] = emote.urls[1];
|
new_emote.urls[1] = emote.urls[1];
|
||||||
|
|
|
@ -30,6 +30,9 @@ FFZ.prototype.setup_emote_menu = function(delay) {
|
||||||
// --------------------
|
// --------------------
|
||||||
|
|
||||||
FFZ.prototype._emote_menu_enumerator = function() {
|
FFZ.prototype._emote_menu_enumerator = function() {
|
||||||
|
if ( this.has_bttv )
|
||||||
|
return [];
|
||||||
|
|
||||||
var twitch_user = this.get_user(),
|
var twitch_user = this.get_user(),
|
||||||
user_id = twitch_user ? twitch_user.login : null,
|
user_id = twitch_user ? twitch_user.login : null,
|
||||||
controller = utils.ember_lookup('controller:chat'),
|
controller = utils.ember_lookup('controller:chat'),
|
||||||
|
|
|
@ -61,7 +61,7 @@ FFZ.channel_metadata = {};
|
||||||
|
|
||||||
// Version
|
// Version
|
||||||
var VER = FFZ.version_info = {
|
var VER = FFZ.version_info = {
|
||||||
major: 3, minor: 5, revision: 345,
|
major: 3, minor: 5, revision: 346,
|
||||||
toString: function() {
|
toString: function() {
|
||||||
return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || "");
|
return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue