From 8089b08f78d5609f9542d5925fcdf3bff6549372 Mon Sep 17 00:00:00 2001 From: andrzej-woof <40596514+andrzej-woof@users.noreply.github.com> Date: Sat, 12 Oct 2024 08:56:13 +0200 Subject: [PATCH 1/2] fix: don't modify IFRAME to avoid reloads --- packages/browser/src/global/stabilization.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/browser/src/global/stabilization.ts b/packages/browser/src/global/stabilization.ts index 3a0dceb..b0478d3 100644 --- a/packages/browser/src/global/stabilization.ts +++ b/packages/browser/src/global/stabilization.ts @@ -128,6 +128,7 @@ function stabilizeElementPositions(document: Document) { const elements = Array.from(document.querySelectorAll("*")); elements.forEach((element) => { if (!checkIsHTMLElement(element)) return; + if (element.tagName === 'IFRAME') return; const style = window.getComputedStyle(element); const position = style.position; if (position === "fixed") { From 57a2e23df08b70bb41f770d330a1ae15b060c882 Mon Sep 17 00:00:00 2001 From: andrzej-woof <40596514+andrzej-woof@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:16:56 +0200 Subject: [PATCH 2/2] chore: fix format --- packages/browser/src/global/stabilization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/browser/src/global/stabilization.ts b/packages/browser/src/global/stabilization.ts index b0478d3..22831fb 100644 --- a/packages/browser/src/global/stabilization.ts +++ b/packages/browser/src/global/stabilization.ts @@ -128,7 +128,7 @@ function stabilizeElementPositions(document: Document) { const elements = Array.from(document.querySelectorAll("*")); elements.forEach((element) => { if (!checkIsHTMLElement(element)) return; - if (element.tagName === 'IFRAME') return; + if (element.tagName === "IFRAME") return; const style = window.getComputedStyle(element); const position = style.position; if (position === "fixed") {