1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 02:16:54 +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

@ -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() {