Moerill / token-mold

MIT License
24 stars 33 forks source link

Hardcoded ref to TokenDocument #160

Closed jbhuddleston closed 11 months ago

jbhuddleston commented 1 year ago

In the _getBarAttributes() function of token-mold.js you refer directly to TokenDocument.getTrackedAttributes()

As I have created a custom TokenDocument class in my systems this breaks some of your functionality for them and causes a Maximum call stack size exceeded error in them.

You should be able to refer to the overriden class through CONFIG.Token.documentClass (as you have done for the Actor) instead and accomodate anyone who has done the same.

Thank you.