Merge pull request #3851 from matrix-org/jryans/download-file-icon

Compute download file icon immediately
This commit is contained in:
J. Ryan Stinnett 2020-01-16 16:53:25 +00:00 committed by GitHub
commit e375b1d31f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

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