Fix error
This commit is contained in:
@@ -16,11 +16,6 @@ var FontAnalyzer = function() {
|
||||
return deferred.promise;
|
||||
}
|
||||
|
||||
var fileSize = entry.weightCheck.bodySize;
|
||||
var ttf;
|
||||
var woff2;
|
||||
var newFileSize;
|
||||
|
||||
if (entry.isWebFont) {
|
||||
debug('File %s is a font. Let\'s have a look inside!', entry.url);
|
||||
|
||||
@@ -50,6 +45,11 @@ var FontAnalyzer = function() {
|
||||
|
||||
debug('Entering font format converter...');
|
||||
|
||||
var fileSize = entry.weightCheck.bodySize;
|
||||
var ttf;
|
||||
var woff2;
|
||||
var newFileSize;
|
||||
|
||||
if (entry.isWoff2) {
|
||||
|
||||
debug('File is already a woff2.');
|
||||
|
||||
Reference in New Issue
Block a user