Merge pull request #3035 from matrix-org/bwindels/decrypted-filesize-font

override font for usercontent download link
pull/21833/head
J. Ryan Stinnett 2019-05-29 10:45:56 +01:00 committed by GitHub
commit 84dc2f8429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ function remoteRender(event) {
a.target = data.target;
a.download = data.download;
a.style = data.style;
a.style.fontFamily = "Arial, Helvetica, Sans-Serif";
a.href = window.URL.createObjectURL(data.blob);
a.appendChild(img);
a.appendChild(document.createTextNode(data.textContent));