You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Compute download file icon immediately
Build process changes may have changed the load order, so this tintable is now registered too late (after the theme is set). Fixes https://github.com/vector-im/riot-web/issues/11881
This commit is contained in:
@@ -143,10 +143,14 @@ class Tinter {
|
|||||||
* over time then the best bet is to register a single callback for the
|
* over time then the best bet is to register a single callback for the
|
||||||
* entire set.
|
* entire set.
|
||||||
*
|
*
|
||||||
|
* To ensure the tintable work happens at least once, it is also called as
|
||||||
|
* part of registration.
|
||||||
|
*
|
||||||
* @param {Function} tintable Function to call when the tint changes.
|
* @param {Function} tintable Function to call when the tint changes.
|
||||||
*/
|
*/
|
||||||
registerTintable(tintable) {
|
registerTintable(tintable) {
|
||||||
this.tintables.push(tintable);
|
this.tintables.push(tintable);
|
||||||
|
tintable();
|
||||||
}
|
}
|
||||||
|
|
||||||
getKeyRgb() {
|
getKeyRgb() {
|
||||||
|
|||||||
Reference in New Issue
Block a user