From d1d332d3b3188563646b302814b85d9fd3c78c65 Mon Sep 17 00:00:00 2001 From: NerezzaAzniv Date: Fri, 10 Jan 2025 19:50:07 -0800 Subject: [PATCH] Update shrink_or_enlarge.js Replaces 'data' with current 'document' --- token/shrink_or_enlarge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/shrink_or_enlarge.js b/token/shrink_or_enlarge.js index 17db006..fb9da39 100644 --- a/token/shrink_or_enlarge.js +++ b/token/shrink_or_enlarge.js @@ -2,7 +2,7 @@ const updates = []; for (let token of canvas.tokens.controlled) { - let newSize = (token.data.height == 1 && token.data.width == 1) ? 2 : 1; + let newSize = (token.document.height == 1 && token.document.width == 1) ? 2 : 1; updates.push({ _id: token.id, height: newSize,