Bläddra i källkod

Fix TTF files not being converted to WOFF2

Gaël Métais 4 år sedan
förälder
incheckning
208ed63c96
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      lib/tools/redownload/fontAnalyzer.js
  2. 1 1
      lib/tools/redownload/redownload.js

+ 1 - 1
lib/tools/redownload/fontAnalyzer.js

@@ -83,7 +83,7 @@ var FontAnalyzer = function() {
                 deferred.reject(error);
                 deferred.reject(error);
             }
             }
 
 
-        } else if (entry.isTtf) {
+        } else if (entry.isTTF) {
 
 
             debug('File is a TTF. Let\'s convert to woff2');
             debug('File is a TTF. Let\'s convert to woff2');
 
 

+ 1 - 1
lib/tools/redownload/redownload.js

@@ -617,7 +617,7 @@ var Redownload = function() {
                 var type = null;
                 var type = null;
                 if (req.isWoff) {
                 if (req.isWoff) {
                     type = 'woff';
                     type = 'woff';
-                } else if (req.isTtf) {
+                } else if (req.isTTF) {
                     type = 'ttf';
                     type = 'ttf';
                 }
                 }