mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Set the MIME type correctly when downloading fonts in debugger.js
(PR 5366 follow-up)
Because of a capitalization error, the MIME type wasn't actually being set correctly. However, please note that downloading of font files still worked correctly which is probably why this has gone unnoticed since 2014.
This commit is contained in:
parent
14e6d8a802
commit
7a89f4a789
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ const FontInspector = (function FontInspectorClosure() {
|
|||
download.href = url[1];
|
||||
} else if (fontObj.data) {
|
||||
download.href = URL.createObjectURL(
|
||||
new Blob([fontObj.data], { type: fontObj.mimeType })
|
||||
new Blob([fontObj.data], { type: fontObj.mimetype })
|
||||
);
|
||||
}
|
||||
download.textContent = "Download";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue