Merge pull request #3851 from matrix-org/jryans/download-file-icon
Compute download file icon immediately
This commit is contained in:
commit
e375b1d31f
2 changed files with 8 additions and 3 deletions
|
@ -143,10 +143,14 @@ class Tinter {
|
|||
* over time then the best bet is to register a single callback for the
|
||||
* 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.
|
||||
*/
|
||||
registerTintable(tintable) {
|
||||
this.tintables.push(tintable);
|
||||
tintable();
|
||||
}
|
||||
|
||||
getKeyRgb() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue