1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 15:27:43 +00:00

Fixed potential future bug with BetterTTV and FFZ Dark Mode.

This commit is contained in:
SirStendec 2015-02-08 02:14:52 -05:00
parent b284bd0f8d
commit c568f23134
4 changed files with 22 additions and 2 deletions

View file

@ -1322,6 +1322,13 @@ FFZ.prototype.setup_bttv = function(delay) {
this.track('setCustomVariable', '3', 'BetterTTV', BetterTTV.info.versionString());
// Disable Dark if it's enabled.
document.querySelector(".app-main").classList.remove("ffz-dark");
if ( this._dark_style ) {
this._dark_style.parentElement.removeChild(this._dark_style);
delete this._dark_style;
}
// Send Message Behavior
var original_send = BetterTTV.chat.helpers.sendMessage, f = this;
BetterTTV.chat.helpers.sendMessage = function(message) {