From 2d6035e5d60cade6cd7d48a50a5a6fe2b0ba72b0 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Fri, 19 Oct 2018 19:45:31 +0200 Subject: [PATCH] Fix fonts being inlined when using `{ inlineFonts: false }` without `{ fonts: true }`. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 12d3c57..9270ab0 100644 --- a/src/index.js +++ b/src/index.js @@ -347,7 +347,7 @@ export default class Critters { } const shouldPreloadFonts = options.fonts === true || options.preloadFonts === true; - const shouldInlineFonts = options.fonts !== false || options.inlineFonts === true; + const shouldInlineFonts = options.fonts !== false && options.inlineFonts === true; const preloadedFonts = []; // Second pass, using data picked up from the first -- 2.51.2