From 951ae6d52cac38a5fdf9797c6d9a2f1052bea614 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 15 Jun 2018 17:49:35 -0700 Subject: [PATCH] Disable inline rendering of SVG attachments Like TIFF, they are now treated as binary files. --- ts/util/GoogleChrome.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/util/GoogleChrome.ts b/ts/util/GoogleChrome.ts index 0bbd1960b1a2..52db78d0f3be 100644 --- a/ts/util/GoogleChrome.ts +++ b/ts/util/GoogleChrome.ts @@ -9,7 +9,8 @@ const SUPPORTED_IMAGE_MIME_TYPES: MIMETypeSupportMap = { 'image/bmp': true, 'image/gif': true, 'image/jpeg': true, - 'image/svg+xml': true, + // No need to support SVG + 'image/svg+xml': false, 'image/webp': true, 'image/x-xbitmap': true, // ICO