jsv1.51 compact mode emotes fixed

This commit is contained in:
Jiiks 2015-12-01 15:53:15 +02:00
parent 154bf90d58
commit bd16913387
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* BetterDiscordApp Core JavaScript /* BetterDiscordApp Core JavaScript
* Version: 1.5 * Version: 1.51
* Author: Jiiks | http://jiiks.net * Author: Jiiks | http://jiiks.net
* Date: 27/08/2015 - 16:36 * Date: 27/08/2015 - 16:36
* Last Update: 24/010/2015 - 17:27 * Last Update: 24/010/2015 - 17:27
@ -8,7 +8,7 @@
var settingsPanel, emoteModule, utils, quickEmoteMenu, opublicServers, voiceMode; var settingsPanel, emoteModule, utils, quickEmoteMenu, opublicServers, voiceMode;
var jsVersion = 1.5; var jsVersion = 1.51;
var supportedVersion = "0.1.5"; var supportedVersion = "0.1.5";
var mainObserver; var mainObserver;
@ -390,7 +390,7 @@ EmoteModule.prototype.injectEmote = function(node) {
var parent = node.parentElement; var parent = node.parentElement;
if(parent.tagName != "SPAN") return; if(parent.tagName != "SPAN") return;
if(!$(parent.parentElement).hasClass("markup")) return; if(!$(parent.parentElement).hasClass("markup") && !$(parent.parentElement).hasClass("message-content")) return;
var parentInnerHTML = parent.innerHTML; var parentInnerHTML = parent.innerHTML;
var words = parentInnerHTML.split(/\s+/g); var words = parentInnerHTML.split(/\s+/g);

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long