From b0a980c397e98a410335b461be0ee9c5de6cdce6 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 22 Jun 2021 11:25:40 -0400 Subject: [PATCH] Always attempt to re-render when the window is resized --- src/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index 648b1da..42cb9df 100644 --- a/src/index.js +++ b/src/index.js @@ -1068,11 +1068,9 @@ function init() { Object.defineProperties(window.CSS2Properties.prototype, propDescs); } - if (!resizeObserver) { - addEventListener('resize', () => { - processItem('[data-css-paint]', true); - }); - } + addEventListener('resize', () => { + processItem('[data-css-paint]'); + }); const OPTS = { passive: true };