1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-24 11:38:30 +00:00

Fixed a bug that'd probably cause out of order messages when disabling chat delay if things were timed just right. Added the Firefox upgrade notice.

This commit is contained in:
SirStendec 2015-08-14 13:39:32 -04:00
parent ad21cfa9ae
commit 56392cd879
3 changed files with 15 additions and 3 deletions

View file

@ -1016,7 +1016,7 @@ FFZ.prototype._modify_room = function(room) {
// Artificial chat delay
pushMessage: function(msg) {
if ( f.settings.chat_delay !== 0 ) {
if ( f.settings.chat_delay !== 0 || (this.ffzPending && this.ffzPending.length) ) {
if ( ! this.ffzPending )
this.ffzPending = [];

View file

@ -21,7 +21,7 @@ FFZ.get = function() { return FFZ.instance; }
// Version
var VER = FFZ.version_info = {
major: 3, minor: 5, revision: 13,
major: 3, minor: 5, revision: 14,
toString: function() {
return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || "");
}

View file

@ -8,6 +8,18 @@ var FFZ = window.FrankerFaceZ;
FFZ.prototype.setup_notifications = function() {
this.log("Adding event handler for window focus.");
window.addEventListener("focus", this.clear_notifications.bind(this));
// Firefox update warning.
if ( navigator.userAgent.toLowerCase().indexOf('firefox/') !== -1 ) {
if ( localStorage.hasOwnProperty('ffz_mozilla_sign_warning') )
return;
localStorage.ffz_mozilla_sign_warning = true;
var f = this;
setTimeout(function() {
f.show_message('Firefox users please re-download the add-on from <a href="https://www.frankerfacez.com/" target="_new">https://www.frankerfacez.com/</a> to ensure that it continues to function after the upgrade to Firefox 41. You should see version 1.56 in your add-ons listing.');
}, 1000);
}
}