Bug fix: TTF extension was wrong. update font types, add OTF type. (#8898)

* Bug fix: TTF extension was wrong.

* Update font MIME types throughout; add font/otf.
This commit is contained in:
Galen Huntington
2025-01-23 10:18:02 -08:00
committed by GitHub
parent 9aed6a5248
commit b04af8bf7a
3 changed files with 7 additions and 6 deletions

View File

@@ -2467,9 +2467,10 @@ $tw.boot.initStartup = function(options) {
$tw.utils.registerFileType("image/vnd.microsoft.icon","base64",".ico",{flags:["image"]});
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
$tw.utils.registerFileType("application/wasm","base64",".wasm");
$tw.utils.registerFileType("application/font-woff","base64",".woff");
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
$tw.utils.registerFileType("application/font-woff2","base64",".woff2");
$tw.utils.registerFileType("font/woff","base64",".woff");
$tw.utils.registerFileType("font/woff2","base64",".woff2");
$tw.utils.registerFileType("font/ttf","base64",".ttf");
$tw.utils.registerFileType("font/otf","base64",".otf");
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
$tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]);