From 45cf9558e533428a7cfba9c87638f48fef0c530d Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 3 Nov 2023 10:06:07 -0400 Subject: [PATCH] Use faster comparison for heading detection --- src/dom/snapshot/snapshot-view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/snapshot/snapshot-view.ts b/src/dom/snapshot/snapshot-view.ts index f943801b..c85c3fe0 100644 --- a/src/dom/snapshot/snapshot-view.ts +++ b/src/dom/snapshot/snapshot-view.ts @@ -129,7 +129,7 @@ class SnapshotView extends DOMView { continue; } let headingFontSize = parseFloat(getComputedStyle(heading).fontSize); - if (headingFontSize / bodyFontSize <= 1) { + if (headingFontSize <= bodyFontSize) { continue; }