From f739d3184abb42a74ef9c00266c8c24e0a0a0129 Mon Sep 17 00:00:00 2001 From: gbtami Date: Sat, 15 Jun 2024 14:26:34 +0200 Subject: [PATCH] Rename addDimensionsCssVarsSuffix to boardName --- src/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events.ts b/src/events.ts index afed31b..8e26314 100644 --- a/src/events.ts +++ b/src/events.ts @@ -13,7 +13,7 @@ export function bindBoard(s: State, onResize: () => void): void { // In case of zooming boards in bughouse, observing s.dom.elements.wrap // causes recursive onResize calls, so we will just observe the document.body - const target = (s.dimensionsCssVarsPostfix) ? document.body : s.dom.elements.wrap; + const target = (s.boardName) ? document.body : s.dom.elements.wrap; if ('ResizeObserver' in window) new ResizeObserver(onResize).observe(target); if (s.viewOnly) return;