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

4.0.0-rc4.5

* Added: Whisper Support
* Fixed: UI missing hover state for a few elements added by FrankerFaceZ.
* Fixed: Handle missing badge definition when rendering FFZ badges.
* Fixed: Update static chat message type mappings.
* Fixed: Error in metadata when unable to get the proper player.
* Fixed: Incorrectly applying dark theme to products page.

A bit more work on getting enhanced viewer cards ready.
This commit is contained in:
SirStendec 2018-07-13 14:32:12 -04:00
parent 4a326823b9
commit 17fb41f083
26 changed files with 396 additions and 80 deletions

View file

@ -55,10 +55,18 @@ export default class Twilight extends BaseSite {
this.router.on(':route', (route, match) => {
this.log.info('Navigation', route && route.name, match && match[0]);
this.fine.route(route && route.name);
this.settings.updateContext({
route,
route_data: match
});
});
const current = this.router.current;
this.fine.route(current && current.name);
this.settings.updateContext({
route: current,
route_data: this.router.match
});
document.head.appendChild(createElement('link', {
href: MAIN_URL,
@ -171,5 +179,6 @@ Twilight.ROUTES = {
'user-events': '/:userName/events',
'user-followers': '/:userName/followers',
'user-following': '/:userName/following',
'product': '/products/:productName',
'user': '/:userName'
}