Skip to content

Commit 2fb6c41

Browse files
Avoid error on gym page.
1 parent d904fa9 commit 2fb6c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/scripts/features/gym-disable-stats/ttGymDisableStats.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
new MutationObserver(async (mutations) => {
4545
if (!feature.enabled()) return;
4646

47-
if (mutations.some((mutation) => [...mutation?.addedNodes].some((node) => node.className.includes?.("gymContentWrapper__")))) {
47+
if (mutations.some((mutation) => [...mutation?.addedNodes].some((node) => node.className?.includes?.("gymContentWrapper__")))) {
4848
showCheckboxes();
4949

5050
requireElement("#gymroot ul[class*='properties_']").then((properties) => {

0 commit comments

Comments
 (0)