Issue
On loading Foundry, before chat loads, Throws This exception:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'style')
[Detected 1 package: damage-log]
at VM32931 damage-log.js:564:50
at new Promise (<anonymous>)
at DamageLog._onRenderChatMessage (VM32931 damage-log.js:560:4)
at #call (foundry.js:724:20)
at Hooks.call (foundry.js:706:38)
at ChatMessage.getHTML (foundry.js:18091:11)
at async ChatLog._renderBatch (foundry.js:73587:21)
at async ChatLog._renderInner (foundry.js:73556:5)
at async ChatLog._render (foundry.js:5073:19)
at async ChatLog._render (foundry.js:59859:5)
at async ChatLog._render (foundry.js:73547:5)
at async Promise.all (index 2)
Issue caused by
Not being able get the rollsNotification element as it hasn't loaded yet
Issue
On loading Foundry, before chat loads, Throws This exception:
Issue caused by
Not being able get the
rollsNotification
element as it hasn't loaded yetSuggested fix
Change line 563 to check if chat is loaded
Original:
Suggested Change: