Skip to content

Commit

Permalink
Rename addDimensionsCssVarsSuffix to boardName
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jun 15, 2024
1 parent 3a26187 commit f739d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f739d31

Please sign in to comment.