1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 08:28:31 +00:00

Fix updateContext. Change the colors used to make chat names readable. Fix /me actions in chat. Fix socket.ping()

This commit is contained in:
SirStendec 2017-11-20 16:59:52 -05:00
parent ab8904a626
commit 127184f997
5 changed files with 20 additions and 11 deletions

View file

@ -1,3 +1,9 @@
<div class="list-header">4.0.0-beta1.3<span>@1ee69894e169e3173e19</span> <time datetime="2017-11-20">(2017-11-20)</time></div>
<ul class="chat-menu-content menu-side-padding">
<li>Fixed: Twitch removed the current route from the output of <code>store.getState()</code>, causing loading issues with FFZ enabled.</li>
<li>Changed: Use slightly brighter/darker colors for testing username readability, due to alternating rows having different background colors.</li>
</ul>
<div class="list-header">4.0.0-beta1.3<span>@f93396a7a97f1a01b284</span> <time datetime="2017-11-17">(2017-11-17)</time></div>
<ul class="chat-menu-content menu-side-padding">
<li>Fixed: Chat Font Size and Family settings not being applied.</li>

View file

@ -62,13 +62,18 @@ export default class Twilight extends BaseSite {
}
updateContext() {
const state = this.store.getState();
this.settings.updateContext({
location: state.router.location,
try {
const state = this.store.getState(),
route = this.context.router && this.context.router.route;
ui: state.ui,
session: state.session
});
this.settings.updateContext({
location: route && route.location,
ui: state && state.ui,
session: state && state.session
});
} catch(err) {
this.log.error('Error updating context.', err);
}
}
getSession() {

View file

@ -228,7 +228,8 @@ export default class ChatHook extends Module {
c = this.colors;
// TODO: Get the background color from the theme system.
c._base = is_dark ? '#0e0c13' : '#faf9fa';
// Updated: Use the lightest/darkest colors from alternating rows for better readibility.
c._base = is_dark ? '#191919' : '#e0e0e0'; //#0e0c13' : '#faf9fa';
c.mode = mode;
c.contrast = contrast;

View file

@ -53,7 +53,7 @@ export default class ChatLine extends Module {
cls.prototype.render = function() {
const types = t.chat.chatTypes || {},
const types = t.parent.chatTypes || {},
msg = this.props.message,
is_action = msg.type === types.Action,

View file

@ -387,9 +387,6 @@ export default class SocketClient extends Module {
// ========================================================================
_send(command, args, callback) {
if ( args.length === 1 )
args = args[0];
if ( ! this.connected )
return this.log.warn(`Tried sending command "${command}" while disconnected.`);