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:
parent
ab8904a626
commit
127184f997
5 changed files with 20 additions and 11 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue