From d25e540dd2f0decf61c52fdc665a28a5dfeda93f Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 3 Jan 2021 10:04:52 +0000 Subject: [PATCH] Add support for image/vnd.microsoft.icon content type Fixes #5357 --- boot/boot.js | 1 + core/modules/parsers/imageparser.js | 1 + 2 files changed, 2 insertions(+) diff --git a/boot/boot.js b/boot/boot.js index c065cfb61..353e5e0f6 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -2301,6 +2301,7 @@ $tw.boot.initStartup = function(options) { $tw.utils.registerFileType("image/heic","base64",".heic",{flags:["image"]}); $tw.utils.registerFileType("image/heif","base64",".heif",{flags:["image"]}); $tw.utils.registerFileType("image/svg+xml","utf8",".svg",{flags:["image"]}); + $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/font-woff","base64",".woff"); $tw.utils.registerFileType("application/x-font-ttf","base64",".woff"); diff --git a/core/modules/parsers/imageparser.js b/core/modules/parsers/imageparser.js index 0208d47e2..e3b8fb60a 100644 --- a/core/modules/parsers/imageparser.js +++ b/core/modules/parsers/imageparser.js @@ -39,6 +39,7 @@ exports["image/webp"] = ImageParser; exports["image/heic"] = ImageParser; exports["image/heif"] = ImageParser; exports["image/x-icon"] = ImageParser; +exports["image/vnd.microsoft.icon"] = ImageParser; })();