fix observer am dumb

This commit is contained in:
Zack 2018-04-06 10:49:26 -04:00
parent 9fceef465e
commit 401f14c894
2 changed files with 4 additions and 5 deletions

View File

@ -91,7 +91,7 @@ betterDiscordIPC.on('asynchronous-reply', (event, arg) => {
var settingsPanel, emoteModule, utils, quickEmoteMenu, voiceMode, pluginModule, themeModule, dMode, publicServersModule;
var jsVersion = 1.792;
var supportedVersion = "0.2.81";
var bbdVersion = "0.0.6";
var bbdVersion = "0.0.7";
var mainObserver;
@ -341,7 +341,7 @@ Core.prototype.initObserver = function () {
}
// if there was nothing added, skip
if (!mutation.addedNodes.length || !(mutation.addedNodes[0] instanceof Element)) return;
if (!mutation.addedNodes.length || !(mutation.addedNodes[0] instanceof Element)) continue;
let node = mutation.addedNodes[0];
@ -393,8 +393,7 @@ Core.prototype.initObserver = function () {
this.injectColoredText(node.parentElement.parentElement);
//if (!node.classList.contains("message-sending")) pluginModule.newMessage();
}
emoteModule.obsCallback(mutation);
}
});

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long