From 208ed63c962e790e09f7c6eac20622d0140ec259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sat, 30 Jan 2021 23:56:03 +0000 Subject: [PATCH] Fix TTF files not being converted to WOFF2 --- lib/tools/redownload/fontAnalyzer.js | 2 +- lib/tools/redownload/redownload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tools/redownload/fontAnalyzer.js b/lib/tools/redownload/fontAnalyzer.js index 5efc5f8..e5e31cc 100644 --- a/lib/tools/redownload/fontAnalyzer.js +++ b/lib/tools/redownload/fontAnalyzer.js @@ -83,7 +83,7 @@ var FontAnalyzer = function() { deferred.reject(error); } - } else if (entry.isTtf) { + } else if (entry.isTTF) { debug('File is a TTF. Let\'s convert to woff2'); diff --git a/lib/tools/redownload/redownload.js b/lib/tools/redownload/redownload.js index c9cab77..3b544f8 100644 --- a/lib/tools/redownload/redownload.js +++ b/lib/tools/redownload/redownload.js @@ -617,7 +617,7 @@ var Redownload = function() { var type = null; if (req.isWoff) { type = 'woff'; - } else if (req.isTtf) { + } else if (req.isTTF) { type = 'ttf'; }